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
PointF structure with the specified coordinates. |
Modifier and Type | Method and Description |
---|---|
static PointF |
add(PointF point,
Size size)
|
static PointF |
add(PointF point,
SizeF size)
|
Object |
clone() |
PointF |
Clone() |
void |
CloneTo(PointF that) |
boolean |
equals(Object obj)
|
static PointF |
getEmpty()
Gets a new instance of the
PointF structure that has Aspose.PSD.PointF.X (PointF.getX() /PointF.setX(float) ) and Aspose.PSD.PointF.Y (PointF.getY() /PointF.setY(float) ) values set to zero. |
float |
getX()
Gets or sets the x-coordinate of this
PointF . |
float |
getY()
Gets or sets the y-coordinate of this
PointF . |
int |
hashCode()
Returns a hash code for this
PointF structure. |
boolean |
isEmpty()
Gets a value indicating whether this
PointF is empty. |
static PointF |
op_Addition(PointF point,
Size size)
|
static PointF |
op_Addition(PointF point,
SizeF size)
|
static boolean |
op_Equality(PointF point1,
PointF point2)
Compares two
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)
|
static PointF |
op_Subtraction(PointF point,
SizeF size)
|
void |
setX(float value)
Gets or sets the x-coordinate of this
PointF . |
void |
setY(float value)
Gets or sets the y-coordinate of this
PointF . |
static PointF |
subtract(PointF point,
Size size)
Translates a
PointF by the negative of a specified size. |
static PointF |
subtract(PointF point,
SizeF size)
Translates a
PointF by the negative of a specified size. |
String |
toString()
Converts this
PointF to a human readable string. |
public PointF()
public PointF(float x, float y)
Initializes a new instance of the 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 PointF
structure that has Aspose.PSD.PointF.X
(PointF.getX()
/PointF.setX(float)
) and Aspose.PSD.PointF.Y
(PointF.getY()
/PointF.setY(float)
) values set to zero.
public final boolean isEmpty()
Gets a value indicating whether this PointF
is empty.
Aspose.PSD.PointF.X
(PointF.getX()
/PointF.setX(float)
) and Aspose.PSD.PointF.Y
(PointF.getY()
/PointF.setY(float)
) are 0; otherwise, false.public final float getX()
Gets or sets the x-coordinate of this PointF
.
public final void setX(float value)
Gets or sets the x-coordinate of this PointF
.
public final float getY()
Gets or sets the y-coordinate of this PointF
.
public final void setY(float value)
Gets or sets the y-coordinate of this PointF
.
public static boolean op_Equality(PointF point1, PointF point2)
Compares two PointF
structures. The result specifies whether the values of the Aspose.PSD.PointF.X
(PointF.getX()
/PointF.setX(float)
) and Aspose.PSD.PointF.Y
(PointF.getY()
/PointF.setY(float)
) properties of the two PointF
structures are equal.
point1
- A first PointF
to compare.point2
- A second PointF
to compare.Aspose.PSD.PointF.X
(PointF.getX()
/PointF.setX(float)
) and Aspose.PSD.PointF.Y
(PointF.getY()
/PointF.setY(float)
) values of the first and second 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 PointF
to compare.point2
- A second PointF
to compare.Aspose.PSD.PointF.X
(PointF.getX()
/PointF.setX(float)
) and Aspose.PSD.PointF.Y
(PointF.getY()
/PointF.setY(float)
) values of point1
and point2
are not equal; otherwise, false.public static PointF subtract(PointF point, Size size)
Translates a PointF
by the negative of a specified size.
public static PointF subtract(PointF point, SizeF size)
Translates a PointF
by the negative of a specified size.
public boolean equals(Object obj)
public int hashCode()
Returns a hash code for this PointF
structure.
public void CloneTo(PointF that)
CloneTo
in class com.aspose.ms.System.ValueType<PointF>
Copyright (c) 2008-2020 Aspose Pty Ltd. All Rights Reserved.