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.
A functional interface representing an operation on the components of a
Pos.-
Method Summary
Modifier and TypeMethodDescriptionapply(double x, double y, double z, float yaw, float pitch) Applies this operator to the given position components.static Pos.Operatoroperator(Vec.Operator operator) Uses aVec.Operatorfor the position components (x/y/z) for aPos.Operator.
-
Method Details
-
operator
Uses aVec.Operatorfor the position components (x/y/z) for aPos.Operator.- Parameters:
operator- the vector operator- Returns:
- the position operator
-
apply
Applies this operator to the given position components.- Parameters:
x- the x componenty- the y componentz- the z componentyaw- the yaw componentpitch- the pitch component- Returns:
- the resulting position
-