Bounding box in this transform's local coordinate space
Bounding circle in this transform's local coordinate space
Protected
_positionVector2 representing the position
Protected
_rotationRotation of the transform in radians
Protected
_scaleVector2 representing the scale
Protected
_shearBounding 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
Private
colorReadonly
colorPrivate
colorProtected
Readonly
glFlag that determines whether to use vertex colors.
Integer representing the layer of this transform
Private
layerProtected
localProtected
localProtected
localMatrix3 representing the transformation matrix in local space
Matrix3 representing the transformation matrix in world space
Private
modelParent transform for this transform
Private
positionReadonly
positionPrivate
texPrivate
texturePrivate
useBoolean indicating whether this transform should be rendered
Protected
worldChecks if this Node2 intersects another Node2, using either a BoundingCircle or AxisAlignedBoundingBox
A boolean indicating whether the two objects intersect
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)
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)
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)
Generated using TypeDoc
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.