Interface Vector2fPropertyBase<T extends VectorFloat<T>>
- All Known Subinterfaces:
Vector2fProperty,Vector3fProperty,Vector3fPropertyBase<T>,Vector4fProperty,Vector4fPropertyBase<T>
- All Known Implementing Classes:
DelegatedVector2fProperty,DelegatedVector2fPropertyBase,DelegatedVector3fProperty,DelegatedVector3fPropertyBase,DelegatedVector4fProperty,DelegatedVector4fPropertyBase,RandomVector2fProperty
A vector property with 2 dimensions.
-
Method Summary
Modifier and TypeMethodDescriptionfloatgetX()Returns the x value of the current vector, or0if the vector isnull.floatgetY()Returns the y value of the current vector, or0if the vector isnull.default FloatPropertydefault FloatPropertyMethods inherited from interface dev.prozilla.pine.common.property.Property
getValue, getValueOr, hasValue, hasValueProperty, isNotNull, isNotNullProperty, isNull, map, replaceNull, requireValue, snapshot, toStringProperty
-
Method Details
-
xProperty
-
getX
float getX()Returns the x value of the current vector, or0if the vector isnull.- Returns:
- The x value of the current vector.
-
yProperty
-
getY
float getY()Returns the y value of the current vector, or0if the vector isnull.- Returns:
- The y value of the current vector.
-