Interface Rotator<T>

Type Parameters:
T - The class on which this rotator acts.
All Known Implementing Classes:
DisplayRotator, NonMutatingQuaternionRotator, NonMutatingVectorRotator, QuaternionRotator, VectorRotator
Functional Interface:
This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

@FunctionalInterface public interface Rotator<T>
A functional interface to support uniform rotation semantics between various types. A rotator rotates objects around a specific Rotator.Axis by a specific angle in radians.
See Also:
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Interface
    Description
    static enum 
    Represents an axis around which to rotate.
  • Method Summary

    Modifier and Type
    Method
    Description
    rotate(T input)
    Rotates the input around the rotator's axis by the rotator's angle.
  • Method Details

    • rotate

      T rotate(T input)
      Rotates the input around the rotator's axis by the rotator's angle. May modify the input.