Blaze.StraightLinePoint Class Reference

Detailed Description

A node which immediately follows a straight line.

Inheritance diagram for Blaze.StraightLinePoint:
Blaze.VectorLine Blaze.VectorPoint

Public Member Functions

 StraightLinePoint (float x, float y)
 Creates a new straight line node for the given point. More...
 
override void RecalculateBounds (VectorPath path)
 Recalculates the minimum values and width/height of this path, taking curves into account. More...
 
override void ComputeLinePoints (Scanner scanner, float extrudeBy)
 Steps along the line between this point and previous point at a fixed step, adding the points to the scanner as it goes. More...
 
override void StartNormal (out float x, out float y)
 Gets the normal at the start of the line from this to previous. More...
 
override void EndNormal (out float x, out float y)
 Gets the normal at the end of the line from this to previous. More...
 
override VectorPoint Copy ()
 
override string ToString ()
 
override void RenderLine (CanvasContext context)
 Renders a straight line from the previous point to this one. More...
 
- Public Member Functions inherited from Blaze.VectorLine
 VectorLine (float x, float y)
 
virtual void SampleAt (float c, out float x, out float y)
 Samples this line at the given c value. More...
 
- Public Member Functions inherited from Blaze.VectorPoint
 VectorPoint ()
 Creates an empty path node. More...
 
 VectorPoint (float x, float y)
 Creates a node at the given point. More...
 
virtual void MultiplyNormals (float by)
 
virtual void RecalculateCurveNormals ()
 Computes the control point normals for any curves. More...
 
virtual void Extrude (float by)
 Extrudes this point along its normal by the given distance. More...
 
VectorPoint GetShapeEnd ()
 
virtual void Transform (VectorTransform transform)
 
override string ToString ()
 
virtual void Multiply (float by)
 
virtual void Squash (float by)
 
virtual void Sheer (float by)
 

Additional Inherited Members

- Public Attributes inherited from Blaze.VectorLine
bool Close
 True if this was generated from a close path call. More...
 
float Length
 The length of this line. Updated by RecalculateBounds. More...
 
- Properties inherited from Blaze.VectorLine
override bool IsClose [get, set]
 
override bool HasLine [get]
 Is there a line from this point to the previous one? More...
 

Constructor & Destructor Documentation

Blaze.StraightLinePoint.StraightLinePoint ( float  x,
float  y 
)
inline

Creates a new straight line node for the given point.

Member Function Documentation

override void Blaze.StraightLinePoint.ComputeLinePoints ( Scanner  scanner,
float  extrudeBy 
)
inlinevirtual

Steps along the line between this point and previous point at a fixed step, adding the points to the scanner as it goes.

Reimplemented from Blaze.VectorPoint.

override VectorPoint Blaze.StraightLinePoint.Copy ( )
inlinevirtual

Reimplemented from Blaze.VectorPoint.

override void Blaze.StraightLinePoint.EndNormal ( out float  x,
out float  y 
)
inlinevirtual

Gets the normal at the end of the line from this to previous.

Reimplemented from Blaze.VectorPoint.

override void Blaze.StraightLinePoint.RecalculateBounds ( VectorPath  path)
inlinevirtual

Recalculates the minimum values and width/height of this path, taking curves into account.

Reimplemented from Blaze.VectorPoint.

override void Blaze.StraightLinePoint.RenderLine ( CanvasContext  context)
inlinevirtual

Renders a straight line from the previous point to this one.

Reimplemented from Blaze.VectorPoint.

override void Blaze.StraightLinePoint.StartNormal ( out float  x,
out float  y 
)
inlinevirtual

Gets the normal at the start of the line from this to previous.

Reimplemented from Blaze.VectorPoint.

override string Blaze.StraightLinePoint.ToString ( )
inline