Package eu.svjatoslav.sixth.e3d.math
Class Transform
java.lang.Object
eu.svjatoslav.sixth.e3d.math.Transform
- All Implemented Interfaces:
Cloneable
Represents a transformation in 3D space combining translation and rotation.
Transformations are applied in order: rotation first, then translation.
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionCreates a transform with the specified translation and no rotation.Creates a transform with the specified translation and rotation angles.Creates a transform with the specified translation and rotation. -
Method Summary
Modifier and TypeMethodDescriptionclone()voidApplies this transform to a point: rotation followed by translation.
-
Constructor Details
-
Transform
public Transform() -
Transform
Creates a transform with the specified translation and no rotation.- Parameters:
translation- the translation
-
Transform
Creates a transform with the specified translation and rotation angles.- Parameters:
translation- the translationangleXZ- the angle around the XZ axis (yaw) in radiansangleYZ- the angle around the YZ axis (pitch) in radians
-
Transform
Creates a transform with the specified translation and rotation.- Parameters:
translation- the translationrotation- the rotation
-
-
Method Details