SplineHandle

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

Properties

Derivative0

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

Derivative1

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

Linear0

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

Linear1

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

Point

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

Tangent0

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

Tangent1

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

Type

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

Methods

CompareTo

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

CreateCusp

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

CreateNatural

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

CreatePlanar

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

CreateSmooth

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

Equals

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