public class PointF extends com.aspose.ms.lang.Struct<PointF>
Represents an ordered pair of floating-point x- and y-coordinates that defines a point in a two-dimensional plane.
| Constructor and Description |
|---|
PointF() |
PointF(float x,
float y)
Initializes a new instance of the
Aspose.Imaging.PointF structure with the specified coordinates. |
| Modifier and Type | Method and Description |
|---|---|
static PointF |
add(PointF point,
Size size)
Translates a given
Aspose.Imaging.PointF by the specified Aspose.Imaging.Size. |
static PointF |
add(PointF point,
SizeF size)
Translates a given
Aspose.Imaging.PointF by a specified Aspose.Imaging.SizeF. |
PointF |
Clone() |
void |
CloneTo(PointF that) |
boolean |
equals(Object obj)
Specifies whether this
Aspose.Imaging.PointF contains the same coordinates as the specified System.Object. |
static PointF |
getEmpty()
Gets a new instance of the
Aspose.Imaging.PointF structure that has com.aspose.cad.PointF.X and com.aspose.cad.PointF.Y values set to zero. |
float |
getX()
Gets or sets the x-coordinate of this
Aspose.Imaging.PointF. |
float |
getY()
Gets or sets the y-coordinate of this
Aspose.Imaging.PointF. |
int |
hashCode()
Returns a hash code for this
Aspose.Imaging.PointF structure. |
boolean |
isEmpty()
Gets a value indicating whether this
Aspose.Imaging.PointF is empty. |
static boolean |
isEquals(PointF obj1,
PointF obj2) |
static PointF |
op_Addition(PointF point,
Size size)
Translates a
Aspose.Imaging.PointF by a given Aspose.Imaging.Size. |
static PointF |
op_Addition(PointF point,
SizeF size)
Translates the
Aspose.Imaging.PointF by the specified Aspose.Imaging.SizeF. |
static boolean |
op_Equality(PointF point1,
PointF point2)
Compares two
Aspose.Imaging.PointF structures. |
static boolean |
op_Inequality(PointF point1,
PointF point2)
Determines whether the coordinates of the specified points are not equal.
|
static PointF |
op_Subtraction(PointF point,
Size size)
Translates a
Aspose.Imaging.PointF by the negative of a given Aspose.Imaging.Size. |
static PointF |
op_Subtraction(PointF point,
SizeF size)
Translates a
Aspose.Imaging.PointF by the negative of a specified Aspose.Imaging.SizeF. |
void |
setX(float value)
Gets or sets the x-coordinate of this
Aspose.Imaging.PointF. |
void |
setY(float value)
Gets or sets the y-coordinate of this
Aspose.Imaging.PointF. |
static PointF |
subtract(PointF point,
Size size)
Translates a
Aspose.Imaging.PointF by the negative of a specified size. |
static PointF |
subtract(PointF point,
SizeF size)
Translates a
Aspose.Imaging.PointF by the negative of a specified size. |
static ApsPoint |
to_ApsPoint(PointF apsPnt)
Performs an explicit conversion from
PointF to ApsPoint. |
static ApsPoint[] |
toPointApsArray(PointF[] fPnts)
Performs an explicit conversion from
PointF arr to ApsPoint arr. |
String |
toString()
Converts this
Aspose.Imaging.PointF to a human readable string. |
public PointF()
public PointF(float x,
float y)
Initializes a new instance of the Aspose.Imaging.PointF structure with the specified coordinates.
x - The horizontal position of the point.y - The vertical position of the point.public static PointF getEmpty()
Gets a new instance of the Aspose.Imaging.PointF structure that has com.aspose.cad.PointF.X and com.aspose.cad.PointF.Y values set to zero.
public boolean isEmpty()
Gets a value indicating whether this Aspose.Imaging.PointF is empty.
com.aspose.cad.PointF.X and com.aspose.cad.PointF.Y are 0; otherwise, false.public float getX()
Gets or sets the x-coordinate of this Aspose.Imaging.PointF.
public void setX(float value)
Gets or sets the x-coordinate of this Aspose.Imaging.PointF.
public float getY()
Gets or sets the y-coordinate of this Aspose.Imaging.PointF.
public void setY(float value)
Gets or sets the y-coordinate of this Aspose.Imaging.PointF.
public static PointF op_Addition(PointF point, Size size)
Translates a Aspose.Imaging.PointF by a given Aspose.Imaging.Size.
point - The Aspose.Imaging.PointF to translate.size - A Aspose.Imaging.Size that specifies the pair of numbers to add to the coordinates of point.Aspose.Imaging.PointF.public static PointF op_Subtraction(PointF point, Size size)
Translates a Aspose.Imaging.PointF by the negative of a given Aspose.Imaging.Size.
point - A Aspose.Imaging.PointF to translate.size - A Aspose.Imaging.Size that specifies the numbers to subtract from the x- and y-coordinates of the point.Aspose.Imaging.PointF.public static PointF op_Addition(PointF point, SizeF size)
Translates the Aspose.Imaging.PointF by the specified Aspose.Imaging.SizeF.
point - The Aspose.Imaging.PointF to translate.size - The Aspose.Imaging.SizeF that specifies the numbers to add to the x- and y-coordinates of the point.Aspose.Imaging.PointF.public static PointF op_Subtraction(PointF point, SizeF size)
Translates a Aspose.Imaging.PointF by the negative of a specified Aspose.Imaging.SizeF.
point - The Aspose.Imaging.PointF to translate.size - The Aspose.Imaging.SizeF that specifies the numbers to subtract from the coordinates of point.Aspose.Imaging.PointF.public static boolean op_Equality(PointF point1, PointF point2)
Compares two Aspose.Imaging.PointF structures. The result specifies whether the values of the com.aspose.cad.PointF.X and com.aspose.cad.PointF.Y properties of the two Aspose.Imaging.PointF structures are equal.
point1 - A first Aspose.Imaging.PointF to compare.point2 - A second Aspose.Imaging.PointF to compare.com.aspose.cad.PointF.X and com.aspose.cad.PointF.Y values of the first and second Aspose.Imaging.PointF structures are equal; otherwise, false.public static boolean op_Inequality(PointF point1, PointF point2)
Determines whether the coordinates of the specified points are not equal.
point1 - A first Aspose.Imaging.PointF to compare.point2 - A second Aspose.Imaging.PointF to compare.com.aspose.cad.PointF.X and com.aspose.cad.PointF.Y values of point1 and point2 are not equal; otherwise, false.public static ApsPoint to_ApsPoint(PointF apsPnt)
Performs an explicit conversion from PointF to ApsPoint.
apsPnt - The pointpublic static ApsPoint[] toPointApsArray(PointF[] fPnts)
Performs an explicit conversion from PointF arr to ApsPoint arr.
fPnts - The pointspublic static PointF add(PointF point, Size size)
Translates a given Aspose.Imaging.PointF by the specified Aspose.Imaging.Size.
point - The Aspose.Imaging.PointF to translate.size - The Aspose.Imaging.Size that specifies the numbers to add to the coordinates of point.Aspose.Imaging.PointF.public static PointF subtract(PointF point, Size size)
Translates a Aspose.Imaging.PointF by the negative of a specified size.
point - The Aspose.Imaging.PointF to translate.size - The Aspose.Imaging.Size that specifies the numbers to subtract from the coordinates of point.Aspose.Imaging.PointF.public static PointF add(PointF point, SizeF size)
Translates a given Aspose.Imaging.PointF by a specified Aspose.Imaging.SizeF.
point - The Aspose.Imaging.PointF to translate.size - The Aspose.Imaging.SizeF that specifies the numbers to add to the coordinates of point.Aspose.Imaging.PointF.public static PointF subtract(PointF point, SizeF size)
Translates a Aspose.Imaging.PointF by the negative of a specified size.
point - The Aspose.Imaging.PointF to translate.size - The Aspose.Imaging.SizeF that specifies the numbers to subtract from the coordinates of point.Aspose.Imaging.PointF.public boolean equals(Object obj)
Specifies whether this Aspose.Imaging.PointF contains the same coordinates as the specified System.Object.
public int hashCode()
Returns a hash code for this Aspose.Imaging.PointF structure.
public String toString()
Converts this Aspose.Imaging.PointF to a human readable string.
public void CloneTo(PointF that)
CloneTo in class com.aspose.ms.System.ValueType<PointF>Copyright (c) 2008-2025 Aspose Pty Ltd. All Rights Reserved.