public class LocalConstraint extends AxisPlaneConstraint
The AxisPlaneConstraint.translationConstraintDirection()
and
AxisPlaneConstraint.rotationConstraintDirection()
are expressed in the Frame local coordinate
system (see Frame.referenceFrame()
).
AxisPlaneConstraint.Type
Constructor and Description |
---|
LocalConstraint() |
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 Frame local 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 local coordinate system by
AxisPlaneConstraint.translationConstraintDirection() . |
rotationConstraintDirection, rotationConstraintType, setRotationConstraint, setRotationConstraintDirection, setRotationConstraintType, setTranslationConstraint, setTranslationConstraintDirection, setTranslationConstraintType, translationConstraintDirection, translationConstraintType
public Vec constrainTranslation(Vec translation, Frame frame)
AxisPlaneConstraint.translationConstraintType()
, constrain
translation to
be along an axis or limited to a plane defined in the local coordinate system by
AxisPlaneConstraint.translationConstraintDirection()
.constrainTranslation
in class Constraint
public 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 Frame local coordinate
system by AxisPlaneConstraint.rotationConstraintDirection()
.constrainRotation
in class Constraint
Processing Library proscene by Jean Pierre Charalambos. (c) 2014-2017 National University of Colombia