All Implemented Interfaces:
Argument

public class AreaCmd extends Subcommand
A subcommand for measuring the area of a triangle defined by three points.

Aliases: area, a

Author:
Lehlogonolo Poole
See Also:
  • Field Details

    • draw

      private boolean draw
  • Constructor Details

    • AreaCmd

      public AreaCmd()
  • Method Details

    • run

      public void run(Invoker invoker, SafeJLabel logLabel, String aliasUsed, Object[] args, ArrayList<TaggedArgValue<?>> taggedArgs)
      Description copied from class: Command
      The method to be overridden by subclasses to implement command functionality.
      Overrides:
      run in class Command
      Parameters:
      invoker - The invoker of this command
      logLabel - The JLabel to display log messages.
      aliasUsed - The alias of the command that was used to invoke it.
      args - The arguments passed to the command.
      taggedArgs - Tagged arguments passed to the command.
    • ghost

      private void ghost(Vector3 A, Vector3 B, Vector3 C, double area)