SplineHandle

References
Represents a single grip in a two-dimensional bezier curve chain.

Properties

Derivative0

#
Gets the incoming derivative.
public double Derivative0 { get; }

Derivative1

#
Gets the outgoing derivative.
public double Derivative1 { get; }

Linear0

#
Gets the linear spline interpolation for the incoming tangent.
public IInterpolation Linear0 { get; }

Linear1

#
Gets the linear spline interpolation for the outgoing tangent.
public IInterpolation Linear1 { get; }

Point

#
Gets the location of this grip.
public Point2d Point { get; }

Tangent0

#
Gets the incoming tangent.
public Vector2d Tangent0 { get; }

Tangent1

#
Gets the outgoing tangent.
public Vector2d Tangent1 { get; }

Type

#
Gets the type of handle.
public HandleType Type { get; }

Methods

CompareTo

#
Comparer only considers grip locations. Tangents are ignored. This is useful for sorting grips.
public int CompareTo(
other
Grip to compare to.
)
Comparison order.

CreateCusp

#
Create a discontinuous spline handle with two tangent constraints.
public static SplineHandle CreateCusp(
point,
incoming,
outgoing
)

CreateNatural

#
Create a natural spline handle without tangent constraints.
public static SplineHandle CreateNatural(
point
)

CreatePlanar

#
Create a spline handle with a horizontal tangent constraint.
public static SplineHandle CreatePlanar(
point
)

CreateSmooth

#
Create a continuous spline handle with a single tangent constraint.
public static SplineHandle CreateSmooth(
point,
tangent
)

Equals

#
Equality only considers grip locations.
public bool Equals(
other
Grip to compare against.
)
True if grips are considered equal.