Curve

Description

abstract class Tinman.Terrain.Util.Curve

Derived from

SerializableBase abstract
ICurve

Abstract base class for ICurve implementations.

Public / Constructors

New


public static method New → (1)

continuity opt : Continuity = Continuity.Tangent

The requested continuity.

returns → ICurve

The ICurve instance.

Creates a ICurve instance that provides the given continuity, using either linear interpolation, Catmull-Rom splines or Uniform-B splines.

The returned curve will only have position control points, i.e. ICurve.HasTangents will return false.

Tangent


public static method Tangent → ()

returns → ICurve

The ICurve instance.

Creates a ICurve instance that provides Continuity.Tangent continuity, using Hermite splines.

The returned curve will have position / tangent control points, i.e. ICurve.HasTangents will return true.

Protected / Constructors

Curve


protected constructor Curve → (2)

serialType in : ISerialTypeInfo

The serial ID.

hasTangents in : bool

The value for ICurve.HasTangents.

Creates a new instance of Curve.

Protected / Attributes

count


protected attribute count → (int32)

The number of control points.

maximum


protected attribute maximum → (int32)

Maximum control point index.

pw


protected attribute pw → (float64 [ ])

W-coordinates (position) of control points or null if not used.

px


protected attribute px → (float64 [ ])

X-coordinates (position) of control points or null if not used.

py


protected attribute py → (float64 [ ])

Y-coordinates (position) of control points or null if not used.

pz


protected attribute pz → (float64 [ ])

Z-coordinates (position) of control points or null if not used.

tw0


protected attribute tw0 → (float64 [ ])

W-coordinates (incoming tangent) of control points or null iff pw is null.

tw1


protected attribute tw1 → (float64 [ ])

W-coordinates (outgoing tangent) of control points or null iff pw is null.

tx0


protected attribute tx0 → (float64 [ ])

X-coordinates (incoming tangent) of control points or null iff px is null.

tx1


protected attribute tx1 → (float64 [ ])

X-coordinates (outgoing tangent) of control points or null iff px is null.

ty0


protected attribute ty0 → (float64 [ ])

Y-coordinates (incoming tangent) of control points or null iff py is null.

ty1


protected attribute ty1 → (float64 [ ])

Y-coordinates (outgoing tangent) of control points or null iff py is null.

tz0


protected attribute tz0 → (float64 [ ])

Z-coordinates (incoming tangent) of control points or null iff pz is null.

tz1


protected attribute tz1 → (float64 [ ])

Z-coordinates (outgoing tangent) of control points or null iff pz is null.

Configuration

Config


public static attribute Config → (get)

value : IConfigurator<ICurve>

[not-null]
The configurator object.

The configurator object for this type.