Interface Pos.Operator

Enclosing class:
Pos
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 static interface Pos.Operator
A functional interface representing an operation on the components of a Pos.
  • Method Summary

    Modifier and Type
    Method
    Description
    apply(double x, double y, double z, float yaw, float pitch)
    Applies this operator to the given position components.
    Uses a Vec.Operator for the position components (x/y/z) for a Pos.Operator.
  • Method Details

    • operator

      static Pos.Operator operator(Vec.Operator operator)
      Uses a Vec.Operator for the position components (x/y/z) for a Pos.Operator.
      Parameters:
      operator - the vector operator
      Returns:
      the position operator
    • apply

      Pos apply(double x, double y, double z, float yaw, float pitch)
      Applies this operator to the given position components.
      Parameters:
      x - the x component
      y - the y component
      z - the z component
      yaw - the yaw component
      pitch - the pitch component
      Returns:
      the resulting position