RotationBuilder¶
inner class RotationBuilder
Constructors¶
RotationBuilder¶
constructor()
Functions¶
angle¶
fun angle(angle: Float): AModelBuilder.ElementBuilder.RotationBuilder
Return
this builder
Parameters
- angle: the rotation angle
Throws
IllegalArgumentException-
if
angleis invalid (not one of 0, +/-22.5, +/-45)
axis¶
fun axis(axis: Direction.Axis): AModelBuilder.ElementBuilder.RotationBuilder
Return
this builder
Parameters
- axis: the axis of rotation
Throws
NullPointerException-
if
axisisnull
build¶
fun build(): BlockElementRotation
end¶
fun end(): AModelBuilder.ElementBuilder
origin¶
fun origin(
x: Float,
y: Float,
z: Float
): AModelBuilder.ElementBuilder.RotationBuilder
rescale¶
fun rescale(rescale: Boolean): AModelBuilder.ElementBuilder.RotationBuilder