52 _flags |= F_start_pos;
85 _flags = (_flags & ~(F_slerp_setup | F_start_quat)) | F_start_hpr;
103 _flags = (_flags & ~F_end_quat) | F_end_hpr;
123 _flags = (_flags & ~F_end_quat) | F_end_hpr;
140 _flags = (_flags & ~(F_slerp_setup | F_start_hpr)) | F_start_quat;
164 _flags = (_flags & ~(F_slerp_setup | F_end_hpr)) | F_end_quat;
182 _flags = (_flags & ~(F_slerp_setup | F_end_hpr)) | F_end_quat;
196 nassertv(!scale.
is_nan());
197 _start_scale = scale;
198 _flags |= F_start_scale;
212 nassertv(!cnan(scale));
227 nassertv(!scale.
is_nan());
229 _flags |= F_end_scale;
243 nassertv(!cnan(scale));
258 nassertv(!shear.
is_nan());
259 _start_shear = shear;
260 _flags |= F_start_shear;
274 nassertv(!shear.
is_nan());
276 _flags |= F_end_shear;
290 nassertv(!color.
is_nan());
291 _start_color = color;
292 _flags |= F_start_color;
306 nassertv(!color.
is_nan());
308 _flags |= F_end_color;
322 nassertv(!color_scale.
is_nan());
323 _start_color_scale = color_scale;
324 _flags |= F_start_color_scale;
338 nassertv(!color_scale.
is_nan());
339 _end_color_scale = color_scale;
340 _flags |= F_end_color_scale;
352 _texture_stage = stage;
366 nassertv(!tex_offset.
is_nan());
367 _start_tex_offset = tex_offset;
368 _flags |= F_start_tex_offset;
382 nassertv(!tex_offset.
is_nan());
383 _end_tex_offset = tex_offset;
384 _flags |= F_end_tex_offset;
398 nassertv(!cnan(tex_rotate));
399 _start_tex_rotate = tex_rotate;
400 _flags |= F_start_tex_rotate;
414 nassertv(!cnan(tex_rotate));
415 _end_tex_rotate = tex_rotate;
416 _flags |= F_end_tex_rotate;
430 nassertv(!tex_scale.
is_nan());
431 _start_tex_scale = tex_scale;
432 _flags |= F_start_tex_scale;
446 nassertv(!tex_scale.
is_nan());
447 _end_tex_scale = tex_scale;
448 _flags |= F_end_tex_scale;
463 _override =
override;
void set_start_scale(const LVecBase3 &scale)
Indicates the initial scale of the lerped node.
void set_start_shear(const LVecBase3 &shear)
Indicates the initial shear of the lerped node.
void set_start_hpr(const LVecBase3 &hpr)
Indicates the initial rotation of the lerped node.
void set_end_shear(const LVecBase3 &shear)
Indicates that the shear of the node should be lerped, and specifies the final shear of the node...
void set_end_scale(const LVecBase3 &scale)
Indicates that the scale of the node should be lerped, and specifies the final scale of the node...
This is the base class for all three-component vectors and points.
void set_start_color_scale(const LVecBase4 &color_scale)
Indicates the initial color scale of the lerped node.
void set_end_hpr(const LVecBase3 &hpr)
Indicates that the rotation of the node should be lerped, and specifies the final rotation of the nod...
void set_end_color(const LVecBase4 &color)
Indicates that the color of the node should be lerped, and specifies the final color of the node...
bool is_nan() const
Returns true if any component of the vector is not-a-number, false otherwise.
void set_start_quat(const LQuaternion &quat)
Indicates the initial rotation of the lerped node.
bool is_nan() const
Returns true if any component of the vector is not-a-number, false otherwise.
void set_texture_stage(TextureStage *stage)
Indicates the texture stage that is adjusted by tex_offset, tex_rotate, and/or tex_scale.
bool is_nan() const
Returns true if any component of the vector is not-a-number, false otherwise.
const NodePath & get_node() const
Returns the node being lerped.
void set_start_color(const LVecBase4 &color)
Indicates the initial color of the lerped node.
int get_override() const
Returns the override value that will be associated with any state changes applied by the lerp...
void set_end_tex_scale(const LVecBase2 &tex_scale)
Indicates that the UV scale of the node should be lerped, and specifies the final UV scale of the nod...
void set_start_tex_offset(const LVecBase2 &tex_offset)
Indicates the initial UV offset of the lerped node.
void set_end_pos(const LVecBase3 &pos)
Indicates that the position of the node should be lerped, and specifies the final position of the nod...
This is the base class for all two-component vectors and points.
void set_override(int override)
Changes the override value that will be associated with any state changes applied by the lerp...
void set_hpr(const LVecBase3f &hpr, CoordinateSystem cs=CS_default)
Sets the quaternion as the unit quaternion that is equivalent to these Euler angles.
void set_start_tex_scale(const LVecBase2 &tex_scale)
Indicates the initial UV scale of the lerped node.
void set_start_tex_rotate(PN_stdfloat tex_rotate)
Indicates the initial UV rotate of the lerped node.
This is the base class for all three-component vectors and points.
This is the base quaternion class.
void set_start_pos(const LVecBase3 &pos)
Indicates the initial position of the lerped node.
void set_end_color_scale(const LVecBase4 &color_scale)
Indicates that the color scale of the node should be lerped, and specifies the final color scale of t...
void set_end_tex_rotate(PN_stdfloat tex_rotate)
Indicates that the UV rotate of the node should be lerped, and specifies the final UV rotate of the n...
void set_end_quat(const LVecBase3 &hpr)
Indicates that the rotation of the node should be lerped, and specifies the final rotation of the nod...
void set_end_tex_offset(const LVecBase2 &tex_offset)
Indicates that the UV offset of the node should be lerped, and specifies the final UV offset of the n...
Defines the properties of a named stage of the multitexture pipeline.
LVecBase3f get_hpr(CoordinateSystem cs=CS_default) const
Extracts the equivalent Euler angles from the unit quaternion.
NodePath is the fundamental system for disambiguating instances, and also provides a higher-level int...
const NodePath & get_other() const
Returns the "other" node, which the lerped node is being moved relative to.