InterpolantSettings

class InterpolantSettings(var endingStart: InterpolantEnding = InterpolantEnding.ZeroCurvature, var endingEnd: InterpolantEnding = InterpolantEnding.ZeroCurvature, var inTangents: DoubleArray? = null, var outTangents: DoubleArray? = null)

The interpolation settings that a derived interpolant may read.

three.js stashes these on a plain settings object; different subclasses read different properties off it:

Modeled as a small holder so the base Interpolant.getSettings_ contract (settings || DefaultSettings_) still works. The tangent arrays are DoubleArray? here (three.js uses Float32Array) to keep the seam entirely within math. It needs no type from the core module.

Parameters

endingStart

The ending mode applied at the start of the curve.

endingEnd

The ending mode applied at the end of the curve.

inTangents

Packed in-tangent control points for BezierInterpolant, or null.

outTangents

Packed out-tangent control points for BezierInterpolant, or null.

Constructors

Link copied to clipboard
constructor(endingStart: InterpolantEnding = InterpolantEnding.ZeroCurvature, endingEnd: InterpolantEnding = InterpolantEnding.ZeroCurvature, inTangents: DoubleArray? = null, outTangents: DoubleArray? = null)

Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard