public class ModelBuilder.ElementBuilder.RotationBuilder
extends java.lang.Object
Constructor and Description |
---|
RotationBuilder() |
Modifier and Type | Method and Description |
---|---|
ModelBuilder.ElementBuilder.RotationBuilder |
angle(float angle) |
ModelBuilder.ElementBuilder.RotationBuilder |
axis(Direction.Axis axis) |
ModelBuilder.ElementBuilder |
end() |
ModelBuilder.ElementBuilder.RotationBuilder |
origin(float x,
float y,
float z) |
ModelBuilder.ElementBuilder.RotationBuilder |
rescale(boolean rescale) |
public ModelBuilder.ElementBuilder.RotationBuilder origin(float x, float y, float z)
public ModelBuilder.ElementBuilder.RotationBuilder axis(Direction.Axis axis)
axis
- the axis of rotationjava.lang.NullPointerException
- if axis
is null
public ModelBuilder.ElementBuilder.RotationBuilder angle(float angle)
angle
- the rotation anglejava.lang.IllegalArgumentException
- if angle
is invalid (not one of 0, +/-22.5, +/-45)public ModelBuilder.ElementBuilder.RotationBuilder rescale(boolean rescale)
public ModelBuilder.ElementBuilder end()