Interface Vector2fProperty
- All Superinterfaces:
Functor<Vector2f>,Property<Vector2f>,Transmittable<Vector2f>,Vector2fPropertyBase<Vector2f>
- All Known Implementing Classes:
DelegatedVector2fProperty,RandomVector2fProperty
- 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 Vector2fProperty
extends Vector2fPropertyBase<Vector2f>, Transmittable<Vector2f>
A property with a
Vector2f value.-
Method Summary
Modifier and TypeMethodDescriptionstatic Vector2fPropertyfromProperty(Property<Vector2f> property) static Vector2fPropertyfromProperty(Vector2fProperty property) default floatgetX()Returns the x value of the current vector, or0if the vector isnull.default floatgetY()Returns the y value of the current vector, or0if the vector isnull.default voidTransmits this object's data to a given target object.Methods inherited from interface dev.prozilla.pine.common.property.Property
getValue, getValueOr, hasValue, hasValueProperty, isNotNull, isNotNullProperty, isNull, map, replaceNull, requireValue, snapshot, toStringPropertyMethods inherited from interface dev.prozilla.pine.common.property.vector.Vector2fPropertyBase
xProperty, yProperty
-
Method Details
-
transmit
Description copied from interface:TransmittableTransmits this object's data to a given target object.- Specified by:
transmitin interfaceTransmittable<Vector2f>- Parameters:
target- The target object to transmit data to
-
getX
default float getX()Description copied from interface:Vector2fPropertyBaseReturns the x value of the current vector, or0if the vector isnull.- Specified by:
getXin interfaceVector2fPropertyBase<Vector2f>- Returns:
- The x value of the current vector.
-
getY
default float getY()Description copied from interface:Vector2fPropertyBaseReturns the y value of the current vector, or0if the vector isnull.- Specified by:
getYin interfaceVector2fPropertyBase<Vector2f>- Returns:
- The y value of the current vector.
-
fromProperty
-
fromProperty
-