Class XZHandler
java.lang.Object
studio.magemonkey.fabled.api.particle.direction.XZHandler
- All Implemented Interfaces:
DirectionHandler
Handles the XZ direction
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
Applies the two results from the polar calculation to a pointrotateAboutY
(Point3D p, double rads) rotateAboutY
(Point3D p, Matrix3D matrix) double
Calculates the X value of a point after rotationdouble
Calculates the Y value of a point after rotationdouble
Calculates the Z value of a point after rotation
-
Field Details
-
instance
-
-
Constructor Details
-
XZHandler
public XZHandler()
-
-
Method Details
-
apply
Applies the two results from the polar calculation to a point- Specified by:
apply
in interfaceDirectionHandler
- Parameters:
point
- the point to apply it ton1
- first valuen2
- second value
-
rotateX
Calculates the X value of a point after rotation- Specified by:
rotateX
in interfaceDirectionHandler
- Parameters:
p
- original pointtrig
- trig data- Returns:
- rotation
-
rotateAboutY
-
rotateAboutY
-
rotateY
Calculates the Y value of a point after rotation- Specified by:
rotateY
in interfaceDirectionHandler
- Parameters:
p
- original pointtrig
- trig data- Returns:
- rotation
-
rotateZ
Calculates the Z value of a point after rotation- Specified by:
rotateZ
in interfaceDirectionHandler
- Parameters:
p
- original pointtrig
- trig data- Returns:
- rotation
-