Bounding box in this transform's local coordinate space
Bounding circle in this transform's local coordinate space
Protected_Vector2 representing the position
Protected_Rotation of the transform in radians
Protected_Vector2 representing the scale
Protected_Bounding box in the world coordinate space
Bounding box in the world coordinate space
Bounding box in vertex coordinate space
Bounding circle in vertex coordinate space
Array of children for this transform
ReadonlycolorProtected ReadonlyglFlag that determines whether to use vertex colors.
Integer representing the layer of this transform
ProtectedlocalProtectedlocalProtectedlocalMatrix3 representing the transformation matrix in local space
Matrix3 representing the transformation matrix in world space
Parent transform for this transform
ReadonlypositionBoolean indicating whether this transform should be rendered
ProtectedworldCreates a default set of colors for the Line object, with each vertex having a color of white (r,g,b,a = 1,1,1,1)
Draws the Line object
Gets the vertex colors of the Line object
An array of numbers representing the vertex colors
Gets the vertex positions of the Line object
An array of numbers representing the vertex positions
Returns the appropriate OpenGL line mode for the current LineMode2 value
The OpenGL line mode corresponding to the LineMode2 value
Checks if this Node2 intersects another Node2, using either a BoundingCircle or AxisAlignedBoundingBox
The Node2 to check for intersection with
The IntersectionMode2 to use for the comparison (default: BOUNDING_CIRCLE)
The CoordinateSpace2 to use for the comparison (default: LOCAL_SPACE)
A boolean indicating whether the two objects intersect
Looks at a target vector with the given look vector
The vector to look at
The vector used to determine the look direction (defaults to Vector2.UP)
Removes the current Node2 from its parent
True if the Node2 was successfully removed, false otherwise
Sets the colors of the Line object
An array of Color objects or numbers representing the vertex colors
OpenGL flag specifying the expected usage of the buffer (defaults to STATIC_DRAW)
Sets the vertices of the Line object
An array of Vector2 objects or numbers representing the vertex positions
OpenGL flag specifying the expected usage of the buffer (defaults to STATIC_DRAW)
Traverses the scene graph starting from the current Node2 object
Updates the world matrix of the current Node2 object and its parent
The base class for 2D lines. This class extends Node2 so it can be added directly to the GopherGfx 2D scene graph. The class can draw line segments, line strips, and line loops. The vertices are interpreted differently depending upon the LineMode2 that is set. WebGL only supports lines that are exactly 1 pixel thick. To draw a more substantial "line", you need to draw the line using triangles.