Interface Rotation3D

    • Method Detail

      • apply

        Vector3D apply​(Vector3D vec)
        Apply this rotation to the given argument. Since rotations do not affect vector magnitudes, this method can be applied to both points and vectors.
        Specified by:
        apply in interface java.util.function.Function<Vector3D,​Vector3D>
        Parameters:
        vec - the point or vector to rotate
        Returns:
        a new instance representing the rotated point or vector
      • getAxis

        Vector3D getAxis()
        Get the axis of rotation as a normalized Vector3D.

        All 3-dimensional rotations and sequences of rotations can be reduced to a single rotation around one axis. This method returns that axis.

        Returns:
        the axis of rotation
        See Also:
        getAngle()
      • getAngle

        double getAngle()
        Get the angle of rotation in radians.

        All 3-dimensional rotations and sequences of rotations can be reduced to a single rotation around one axis. This method returns the angle of rotation around that axis.

        Returns:
        angle of rotation in radians.
        See Also:
        getAxis()