com.groupdocs.annotation.models

Class Point

  • java.lang.Object
    • com.aspose.ms.System.ValueType<T>
      • com.aspose.ms.lang.Struct<Point>
        • com.groupdocs.annotation.models.Point


  • public class Point
    extends com.aspose.ms.lang.Struct<Point>

    Represents point.

    • Constructor Detail

      • Point

        public Point()
      • Point

        public Point(float x,
             float y)

        Initializes a new instance of the Point struct.

        Parameters:
        x - The x.
        y - The y.
    • Method Detail

      • Clone

        public Point Clone()
        Specified by:
        Clone in class com.aspose.ms.System.ValueType<Point>
      • CloneTo

        public void CloneTo(Point that)
        Specified by:
        CloneTo in class com.aspose.ms.System.ValueType<Point>
      • equals

        public boolean equals(Object obj)

        Determines whether the specified point is equal to the current point.

        Overrides:
        equals in class Object
        Parameters:
        obj - The point to compare with the current point.
        Returns:
        if the specified point is equal to the current point; otherwise, .
      • equals

        public static boolean equals(Point obj1,
                     Point obj2)
      • getX

        public final float getX()

        Gets or sets the x.

        Value: The x.
        Returns:
      • getY

        public final float getY()

        Gets or sets the y.

        Value: The y.
        Returns:
      • hashCode

        public int hashCode()

        Serves as the default hash function.

        Overrides:
        hashCode in class Object
        Returns:
        A hash code for the current point.
      • isPointCollectionsEqual

        public static boolean isPointCollectionsEqual(List<Point> points1,
                                      List<Point> points2)
      • op_Equality

        public static boolean op_Equality(Point left,
                          Point right)

        Compares two Point objects. The result specifies whether the values of the Point.X and Point.Y properties of the two Point objects are equal.

        Parameters:
        left - A Point to compare.
        right - A Point to compare.
        Returns:
        true if the Point.X and Point.Y values of left and right are equal; otherwise, false.
      • op_Inequality

        public static boolean op_Inequality(Point left,
                            Point right)

        Compares two Point objects. The result specifies whether the values of the Point.X and Point.Y properties of the two Point objects are not equal.

        Parameters:
        left - A Point to compare.
        right - A Point to compare.
        Returns:
        true if the Point.X and Point.Y values of left and right are not equal; otherwise, false.
      • setX

        public final void setX(float value)

        Gets or sets the x.

        Value: The x.
        Parameters:
        value -
      • setY

        public final void setY(float value)

        Gets or sets the y.

        Value: The y.
        Parameters:
        value -