public static enum AxisPlaneConstraint.Type extends Enum<AxisPlaneConstraint.Type>
It specifies the meaning of the constraint direction (see
AxisPlaneConstraint.translationConstraintDirection()
and AxisPlaneConstraint.rotationConstraintDirection()
): as an axis direction or a plane normal. FREE
means no constraint
while FORBIDDEN
completely forbids the translation and/or the rotation.
Attention: The PLANE
Type is not valid for rotational
constraint.
New derived classes can use their own extended enum
for specific constraints.
Modifier and Type | Method and Description |
---|---|
static AxisPlaneConstraint.Type |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static AxisPlaneConstraint.Type[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final AxisPlaneConstraint.Type FREE
public static final AxisPlaneConstraint.Type AXIS
public static final AxisPlaneConstraint.Type PLANE
public static final AxisPlaneConstraint.Type FORBIDDEN
public static AxisPlaneConstraint.Type[] values()
for (AxisPlaneConstraint.Type c : AxisPlaneConstraint.Type.values()) System.out.println(c);
public static AxisPlaneConstraint.Type valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullProcessing Library proscene by Jean Pierre Charalambos. (c) 2014-2017 National University of Colombia