Skip to content

Rotation

final class Rotation
Package: dev.joid.lib.render.transform · Module: core · Source: Rotation.java

The axis of a rotation in a Transformation, as yaw, pitch and roll components.

ROLL turns the drawing in the plane of the screen; YAW and PITCH turn it in depth. The components are read each time the rotation is applied.

ReturnsSignatureSummary
Rotationcreate(double yaw, double pitch, double roll) factoryCreates the axis with the components yaw (Y axis), pitch (X axis) and roll (Z axis).
Rotationcreate(Supplier yawSupplier, Supplier pitchSupplier, Supplier rollSupplier) factoryCreates an axis whose components are read from the suppliers each time it is applied.

ReturnsSignatureSummary
doublegetYaw()Returns the component along the vertical axis.
doublegetRoll()Returns the component along the axis that points out of the screen.
doublegetPitch()Returns the component along the horizontal axis.
Supplier<Double>getYawSupplier()Returns the supplier of the yaw component.
Supplier<Double>getPitchSupplier()Returns the supplier of the pitch component.
Supplier<Double>getRollSupplier()Returns the supplier of the roll component.
TypeNameValueSummary
RotationYAWnew Rotation(1D, 0D, 0D)Turns around the vertical axis.
RotationROLLnew Rotation(0D, 0D, 1D)Turns in the plane of the screen, around the axis that points out of it.
RotationPITCHnew Rotation(0D, 1D, 0D)Turns around the horizontal axis.

Rotation create(double yaw, double pitch, double roll) factory

Creates the axis with the components yaw (Y axis), pitch (X axis) and roll (Z axis).

Rotation create(Supplier<Double> yawSupplier, Supplier<Double> pitchSupplier, Supplier<Double> rollSupplier) factory

Creates an axis whose components are read from the suppliers each time it is applied.

double getYaw()

Returns the component along the vertical axis.

double getRoll()

Returns the component along the axis that points out of the screen.

double getPitch()

Returns the component along the horizontal axis.

Supplier<Double> getYawSupplier()

Returns the supplier of the yaw component.

Supplier<Double> getPitchSupplier()

Returns the supplier of the pitch component.

Supplier<Double> getRollSupplier()

Returns the supplier of the roll component.

Rotation YAW

Turns around the vertical axis.

Rotation ROLL

Turns in the plane of the screen, around the axis that points out of it.

Rotation PITCH

Turns around the horizontal axis.


fluent returns the instance, typed for chaining · factory creates an instance · signal also accepts a value that follows signals, as a signal, an expression or a lambda (When does JOID compute this value again?) · hook called by JOID, override it · abstract you implement it · default interface method with a body · static called on the class · protected visible to subclasses

Report a problem with this page