Easy3D 2.6.1
|
An AxisPlaneConstraint defined in the world coordinate system. More...
#include <easy3d/renderer/constraint.h>
Public Member Functions | |
~WorldConstraint () override=default | |
void | constrainTranslation (vec3 &translation, Frame *const frame) override |
void | constrainRotation (quat &rotation, Frame *const frame) override |
![]() | |
AxisPlaneConstraint () | |
~AxisPlaneConstraint () override=default | |
void | setTranslationConstraint (Type type, const vec3 &direction) |
void | setTranslationConstraintType (Type type) |
void | setTranslationConstraintDirection (const vec3 &direction) |
Type | translationConstraintType () const |
vec3 | translationConstraintDirection () const |
void | setRotationConstraint (Type type, const vec3 &direction) |
void | setRotationConstraintType (Type type) |
void | setRotationConstraintDirection (const vec3 &direction) |
Type | rotationConstraintType () const |
vec3 | rotationConstraintDirection () const |
![]() | |
virtual | ~Constraint ()=default |
Additional Inherited Members | |
![]() | |
enum | Type { FREE , AXIS , PLANE , FORBIDDEN } |
An AxisPlaneConstraint defined in the world coordinate system.
The translationConstraintDirection() and rotationConstraintDirection() are expressed in world coordinate system.
See the constrainedFrame and multiView examples for an illustration.
|
overridedefault |
Virtual destructor. Empty.
When rotationConstraintType() is AxisPlaneConstraint::AXIS, constrain rotation
to be a rotation around an axis whose direction is defined in the world coordinate system by rotationConstraintDirection().
Reimplemented from AxisPlaneConstraint.
Depending on translationConstraintType(), constrain translation
to be along an axis or limited to a plane defined in the world coordinate system by translationConstraintDirection().
Reimplemented from AxisPlaneConstraint.