Interface Vec.Operator
- Enclosing class:
Vec
- 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
Vec.-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Vec.Operatorstatic final Vec.Operatorstatic final Vec.Operatorstatic final Vec.Operatorstatic final Vec.Operator -
Method Summary
Modifier and TypeMethodDescriptionapply(double x, double y, double z) Applies the operator to the given x, y, z components.static Vec.Operatoroperator(DoubleUnaryOperator operator) Shortcut utility to apply the operator on all 3 components.
-
Field Details
-
EPSILON
-
FLOOR
-
SIGNUM
-
CEIL
-
ROUND
-
-
Method Details
-
operator
Shortcut utility to apply the operator on all 3 components.- Parameters:
operator- the unary operator to use- Returns:
- the vector operator
-
apply
Applies the operator to the given x, y, z components.- Parameters:
x- the x componenty- the y componentz- the z component- Returns:
- the resulting vector
-