Class RelativePoint

  • All Implemented Interfaces:
    Serializable

    public class RelativePoint
    extends Object
    implements Serializable
    Represents a relative position in an image. Basically two floats ranging from 0 to 100.
    Since:
    5.34
    Author:
    Michiel Meeuwissen
    See Also:
    Serialized Form
    • Constructor Detail

      • RelativePoint

        public RelativePoint​(float x,
                             float y)
    • Method Detail

      • of

        public static RelativePoint of​(@Min(0L) @Max(100L)
                                       @javax.validation.constraints.Min(0L),@javax.validation.constraints.Max(100L) float x,
                                       @Min(0L) @Max(100L)
                                       @javax.validation.constraints.Min(0L),@javax.validation.constraints.Max(100L) int y)
      • getX

        public float getX()
      • getY

        public float getY()
      • equals

        public boolean equals​(@Nullable Object o)
        Overrides:
        equals in class Object
      • canEqual

        protected boolean canEqual​(@Nullable Object other)
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object