Class GLine

All Implemented Interfaces:
EventEmitterInterface, EventListener, IdempotentEventListener<GPointMovedEvent, Vector3>, CanCopy, DecomposeWhenDrawn<Segment>, HasParents<GTri>, SceneObject, HasProperties

GLine represents, you guessed it, a line.

A GLine's pivot is always defined as its midpoint.

A GLine is drawn by a parent GTri but otherwise is stored alongside other GObjects within a Thing. And a GLine also draws it's relevant GPoints

Author:
Lehlogonolo Poole
See Also:
  • Field Details

    • pointA

      private GPoint pointA
      The startpoint of this line
    • pointB

      private GPoint pointB
      The endPoint of this line.
    • deletedState

      private boolean deletedState
    • parents

      private final HashSet<GTri> parents
    • renderState

      private RenderState<Segment,GObject> renderState
  • Constructor Details

    • GLine

      public GLine(GPoint A, GPoint B)
      Default Constructor
      Parameters:
      A - The start point
      B - THe end point
  • Method Details