Class YZHandler
java.lang.Object
studio.magemonkey.fabled.api.particle.direction.YZHandler
- All Implemented Interfaces:
DirectionHandler
Handles the YZ direction
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidApplies the two results from the polar calculation to a pointdoubleCalculates the X value of a point after rotationdoubleCalculates the Y value of a point after rotationdoubleCalculates the Z value of a point after rotation
-
Field Details
-
instance
-
-
Constructor Details
-
YZHandler
public YZHandler()
-
-
Method Details
-
apply
Applies the two results from the polar calculation to a point- Specified by:
applyin 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:
rotateXin interfaceDirectionHandler- Parameters:
p- original pointtrig- trig data- Returns:
- rotation
-
rotateY
Calculates the Y value of a point after rotation- Specified by:
rotateYin interfaceDirectionHandler- Parameters:
p- original pointtrig- trig data- Returns:
- rotation
-
rotateZ
Calculates the Z value of a point after rotation- Specified by:
rotateZin interfaceDirectionHandler- Parameters:
p- original pointtrig- trig data- Returns:
- rotation
-