Package nl.colorize.multimedialib.stage
Class Transform3D
java.lang.Object
nl.colorize.multimedialib.stage.Transform3D
Transformation matrix that controls how polygonal 3D graphics are displayed.
This class is the equivalent of
Transform but for 3D graphics.
The following transform properties are available:
- Position
- Rotation (in degrees)
- Scale (as a percentage of the original)
- Alpha (as a percentage, with 0% being fully transparent)
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddPosition(float deltaX, float deltaY, float deltaZ) voidaddRotation(float degreesX, float degreesY, float degreesZ) combine(Transform3D other) Returns a newTransform3Dinstance that is the result of combining this transform with the specified other transform.floatfloatfloatbooleanvoidset(Transform3D source) voidsetPosition(float x, float y, float z) voidsetPosition(Point3D position) voidsetRotation(float rotationX, float rotationY, float rotationZ) voidsetRotationX(Angle rotationX) voidsetRotationY(Angle rotationY) voidsetRotationZ(Angle rotationZ) voidsetScale(float scale) voidsetScale(float scaleX, float scaleY, float scaleZ) voidsetScaleX(float scaleX) voidsetScaleY(float scaleY) voidsetScaleZ(float scaleZ) voidsetVisible(boolean visible) voidsetX(float x) voidsetY(float y) voidsetZ(float z)
-
Constructor Details
-
Transform3D
public Transform3D()
-
-
Method Details
-
set
-
setPosition
public void setPosition(float x, float y, float z) -
addPosition
public void addPosition(float deltaX, float deltaY, float deltaZ) -
setX
public void setX(float x) -
setY
public void setY(float y) -
setZ
public void setZ(float z) -
setRotation
public void setRotation(float rotationX, float rotationY, float rotationZ) -
addRotation
public void addRotation(float degreesX, float degreesY, float degreesZ) -
setScale
public void setScale(float scaleX, float scaleY, float scaleZ) -
setScale
public void setScale(float scale) -
combine
Returns a newTransform3Dinstance that is the result of combining this transform with the specified other transform. -
setVisible
public void setVisible(boolean visible) -
setPosition
-
setRotationX
-
setRotationY
-
setRotationZ
-
setScaleX
public void setScaleX(float scaleX) -
setScaleY
public void setScaleY(float scaleY) -
setScaleZ
public void setScaleZ(float scaleZ) -
isVisible
public boolean isVisible() -
getPosition
-
getRotationX
-
getRotationY
-
getRotationZ
-
getScaleX
public float getScaleX() -
getScaleY
public float getScaleY() -
getScaleZ
public float getScaleZ()
-