public class EyeConstraint extends AxisPlaneConstraint
The AxisPlaneConstraint.translationConstraintDirection() and
AxisPlaneConstraint.rotationConstraintDirection() are expressed in the associated eye()
coordinate system.
AxisPlaneConstraint.Type| Constructor and Description |
|---|
EyeConstraint(Eye theEye)
Creates an EyeConstraint, whose constrained directions are defined in the
eye() coordinate system. |
| Modifier and Type | Method and Description |
|---|---|
Rotation |
constrainRotation(Rotation rotation,
Frame frame)
When
AxisPlaneConstraint.rotationConstraintType() is of type AXIS, constrain rotation to
be a rotation around an axis whose direction is defined in the eye()
coordinate system by AxisPlaneConstraint.rotationConstraintDirection(). |
Vec |
constrainTranslation(Vec translation,
Frame frame)
Depending on
AxisPlaneConstraint.translationConstraintType(), constrain translation to
be along an axis or limited to a plane defined in the eye() coordinate
system by AxisPlaneConstraint.translationConstraintDirection(). |
Eye |
eye()
Returns the associated Eye.
|
rotationConstraintDirection, rotationConstraintType, setRotationConstraint, setRotationConstraintDirection, setRotationConstraintType, setTranslationConstraint, setTranslationConstraintDirection, setTranslationConstraintType, translationConstraintDirection, translationConstraintTypepublic Eye eye()
public Vec constrainTranslation(Vec translation, Frame frame)
AxisPlaneConstraint.translationConstraintType(), constrain translation to
be along an axis or limited to a plane defined in the eye() coordinate
system by AxisPlaneConstraint.translationConstraintDirection().constrainTranslation in class Constraintpublic Rotation constrainRotation(Rotation rotation, Frame frame)
AxisPlaneConstraint.rotationConstraintType() is of type AXIS, constrain rotation to
be a rotation around an axis whose direction is defined in the eye()
coordinate system by AxisPlaneConstraint.rotationConstraintDirection().constrainRotation in class ConstraintProcessing Library proscene by Jean Pierre Charalambos. (c) 2014-2017 National University of Colombia