Skip to main content

CurveWall.CurvePoint

A class in Root.Township, the global namespace.

One node of a CurveWall Bezier spline: a position and its back and forward handles, both relative to the position.

Constructors​

MemberWhat it is
CurvePoint()Creates a CurveWall.CurvePoint with default values.

Fields​

3 private and internal fields
MemberWhat it is
private Vector3 handleBackBacking field for HandleBack.
private Vector3 handleForwardBacking field for HandleForward.
private Vector3 positionBacking field for Position.

Properties​

MemberWhat it is
Vector3 HandleBack { get; set; }Handle offset toward the previous node.
Vector3 HandleForward { get; set; }Handle offset toward the next node.
Vector3 Position { get; set; }Node position.

Methods​

MemberWhat it is
Vector3 CalculatePoint(CurveWall.CurvePoint next, float time)Returns the point on the cubic Bezier segment from this node to the next at the given time (0 to 1).

Used in​

Members of other types that take, return or hold a CurvePoint: