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.

tw


protected attribute tw → (float64 [ ])

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

tx


protected attribute tx → (float64 [ ])

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

ty


protected attribute ty → (float64 [ ])

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

tz


protected attribute tz → (float64 [ ])

Z-coordinates (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.