Class RandomVector2fProperty

All Implemented Interfaces:
Property<Vector2f>, Vector2fProperty, Vector2fPropertyBase<Vector2f>, Transmittable<Vector2f>, Functor<Vector2f>

public class RandomVector2fProperty extends RandomObjectProperty<Vector2f> implements Vector2fProperty
  • Constructor Details

    • RandomVector2fProperty

      public RandomVector2fProperty(float min, float max)
    • RandomVector2fProperty

      public RandomVector2fProperty(float minX, float maxX, float minY, float maxY)
    • RandomVector2fProperty

      public RandomVector2fProperty(Vector2f min, Vector2f max)
  • Method Details

    • isNotNull

      @Contract("-> true") public boolean isNotNull()
      Description copied from interface: Property
      Checks if the value of this property is not null.
      Specified by:
      isNotNull in interface Property<Vector2f>
      Returns:
      true if the value of this property is not null.
    • isNotNullProperty

      public FixedBooleanProperty isNotNullProperty()
      Description copied from interface: Property
      Returns a boolean property whose value is true if the value of this property is not null and vice versa.
      Specified by:
      isNotNullProperty in interface Property<Vector2f>
      Returns:
      A boolean property whose value is true if the value of this property is not null and vice versa.
      See Also:
    • getValue

      public Vector2f getValue()
      Description copied from interface: Property
      Returns the value of this property.
      Specified by:
      getValue in interface Property<Vector2f>
      Returns:
      The value of this property.
    • getX

      public float getX()
      Description copied from interface: Vector2fPropertyBase
      Returns the x value of the current vector, or 0 if the vector is null.
      Specified by:
      getX in interface Vector2fProperty
      Specified by:
      getX in interface Vector2fPropertyBase<Vector2f>
      Returns:
      The x value of the current vector.
    • getY

      public float getY()
      Description copied from interface: Vector2fPropertyBase
      Returns the y value of the current vector, or 0 if the vector is null.
      Specified by:
      getY in interface Vector2fProperty
      Specified by:
      getY in interface Vector2fPropertyBase<Vector2f>
      Returns:
      The y value of the current vector.