116
Chapter 10: Scene Graph Engines
csPositionInterpolator
csPositionInterpolator linearly interpolates between sets of values in a SFVec3f. This is
appropriate for interpolating a translation. The vectors are interpreted as absolute
positions in local space. The keyValue field must contain exactly as many values as in the
key field.
csPositionInterpolator Fields
csPositionInterpolator contains the following field:
csMFVec3f* keyValue() const;
csSFVec3f value
keyValue() contains the float values used for the scalar interpolation. The number of
elements stored in the value field is equal to the number of elements in the keyValue()
field divided by the number of elements in the key field.
For more information about keyValue(), see, “Interpolator Engine Terminology” on
page 111.
csScalarInterpolator
csScalarInterpolator linearly interpolates between a set of csSFFloat values. This
interpolator is appropriate for any parameter that is defined with a single floating point
value, for example, width, radius, and intensity.
csScalarInterpolator contains the following fields:
csMFFloat keyValue[];
csSFFloat value;
For an explanation of keyValue(), see, “Interpolator Engine Terminology” on page 111.