Package studio.magemonkey.fabled.data
Class Point3D
java.lang.Object
studio.magemonkey.fabled.data.Point3D
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
rotate
(double xRot, double yRot, double zRot) Rotates the point around the originvoid
rotateX
(double xRot) Rotates the point around the originvoid
rotateY
(double yRot) Rotates the point around the originvoid
rotateZ
(double zRot) Rotates the point around the origintoString()
-
Field Details
-
x
public double x -
y
public double y -
z
public double z
-
-
Constructor Details
-
Point3D
public Point3D() -
Point3D
public Point3D(double x, double y, double z)
-
-
Method Details
-
rotate
public void rotate(double xRot, double yRot, double zRot) Rotates the point around the origin- Parameters:
xRot
- The rotation around the x-axis (in degrees)yRot
- The rotation around the y-axis (in degrees)zRot
- The rotation around the z-axis (in degrees)
-
rotateX
public void rotateX(double xRot) Rotates the point around the origin- Parameters:
xRot
- The rotation around the x-axis (in degrees)
-
rotateY
public void rotateY(double yRot) Rotates the point around the origin- Parameters:
yRot
- The rotation around the y-axis (in degrees)
-
rotateZ
public void rotateZ(double zRot) Rotates the point around the origin- Parameters:
zRot
- The rotation around the z-axis (in degrees)
-
toString
-