SplinePositionInterpolator2D
SplinePositionInterpolator2D performs non-linear interpolation among paired lists of 2-tuple values and velocities to produce an SFVec2f value_changed output event.
The SplinePositionInterpolator2D node belongs to the Interpolation component and its container field is children. It is available since X3D version 3.2 or later.
Fields
SFNode [in, out] metadata NULL [X3DMetadataObject]
Metadata are not part of the X3D world and not interpreted by the X3D browser, but they can be accessed via the ECMAScript interface.
SFFloat [in] set_fraction (-∞,∞)
Set_fraction selects input key for corresponding use of keyValue, keyVelocity values for output computation.
SFBool [in, out] closed FALSE
Whether or not the curve is closed (i.e. matching end values), with continuous velocity vectors as the interpolator transitions from the last key to the first key.
Warnings
If velocity vectors at first and last keys are specified, the closed field is ignored. If keyValues at first and last key are not identical, the closed field is ignored.
MFFloat [in, out] key [ ] (-∞,∞)
Definition parameters for nonlinear-interpolation function time intervals, in increasing order and corresponding to keyValue, keyVelocity array values.
Warning
Number of keys must match number of keyValues!
MFVec2f [in, out] keyValue [ ] (-∞,∞)
Output values for nonlinear interpolation, each corresponding to time-fraction keys.
Warning
Number of keys must match number of keyValues!
MFVec2f [in, out] keyVelocity [ ] (-∞,∞)
Output values for nonlinear interpolation, each corresponding to time-fraction keys.
Warning
Number of keys must match number of keyVelocity values!
SFBool [in, out] normalizeVelocity FALSE
NormalizeVelocity field specifies whether the velocity vectors are normalized to produce smooth speed transitions, or transformed into tangency vectors.
See Also
SFVec2f [out] value_changed
Nonlinearly interpolated output value computed by using current time fraction along with corresponding key, keyValue and keyVelocity values.