Struct CommandBuilder2D
Public
2D wrapper for a CommandBuilder.
var p1 = new Vector2(0, 1);
var p2 = new Vector2(5, 7);
// Draw it in the XY plane
Draw.xy.Line(p1, p2);
// Draw it in the XZ plane
Draw.xz.Line(p1, p2);
Public Methods
ArrowRelativeSizeHead
(from, to, up, headFraction, [color])
Draws an arrow between two points with a head that varies with the length of the arrow.
PushLineWidth
(pixels, automaticJoins=true)
Draws all lines until the next PopLineWidth with a given line width in pixels.
Public Variables
xy
True if drawing in the XY plane, false if drawing in the XZ plane.
Public
Public Static Variables
XY_TO_XZ_ROTATION
Public
Static
Readonly
XY_UP
Public
Static
Readonly
XZ_TO_XY_MATRIX
Public
Static
Readonly
XZ_TO_XZ_ROTATION
Public
Static
Readonly
XZ_UP
Public
Static
Readonly
Private/Protected Members
draw
The wrapped command builder.
Private