|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.aspose.imaging.PointF
public class PointF
Represents an ordered pair of floating-point x- and y-coordinates that defines a point in a two-dimensional plane.
| Constructor Summary | |
|---|---|
PointF()
|
|
PointF(float x,
float y)
Initializes a new instance of the PointF structure with the specified coordinates. |
|
| Method Summary | |
|---|---|
static PointF |
add(PointF point,
Size size)
Translates a given PointF by the specified Size. |
static PointF |
add(PointF point,
SizeF size)
Translates a given PointF by a specified SizeF. |
java.lang.Object |
clone()
|
PointF |
Clone()
|
void |
CloneTo(PointF that)
|
boolean |
equals(java.lang.Object obj)
|
static boolean |
equals(PointF obj1,
PointF obj2)
|
static PointF |
getEmpty()
Gets a new instance of the PointF structure that has PointF.X and PointF.Y values set to zero. |
float |
getX()
Gets the x-coordinate of this PointF. |
float |
getY()
Gets 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)
Translates a PointF by a given Size. |
static PointF |
op_Addition(PointF point,
SizeF size)
Translates the PointF by the specified SizeF. |
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)
Translates a PointF by the negative of a given Size. |
static PointF |
op_Subtraction(PointF point,
SizeF size)
Translates a PointF by the negative of a specified SizeF. |
void |
setX(float value)
Sets the x-coordinate of this PointF. |
void |
setY(float value)
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. |
java.lang.String |
toString()
Converts this PointF to a human readable string. |
| Methods inherited from class java.lang.Object |
|---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
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.| Method Detail |
|---|
public static PointF add(PointF point,
Size size)
Translates a given PointF by the specified Size.
point - The PointF to translate.size - The Size that specifies the numbers to add to the coordinates of point.
PointF.
public static PointF add(PointF point,
SizeF size)
Translates a given PointF by a specified SizeF.
point - The PointF to translate.size - The SizeF that specifies the numbers to add to the coordinates of point.
PointF.public java.lang.Object clone()
public PointF Clone()
public void CloneTo(PointF that)
public boolean equals(java.lang.Object obj)
public static boolean equals(PointF obj1,
PointF obj2)
public static PointF getEmpty()
Gets a new instance of the PointF structure that has PointF.X and PointF.Y values set to zero.
public float getX()
Gets the x-coordinate of this PointF.
public float getY()
Gets the y-coordinate of this PointF.
public int hashCode()
Returns a hash code for this PointF structure.
PointF structure.public boolean isEmpty()
Gets a value indicating whether this PointF is empty.
PointF.X and PointF.Y are 0; otherwise, false.
public static PointF op_Addition(PointF point,
Size size)
Translates a PointF by a given Size.
point - The PointF to translate.size - A Size that specifies the pair of numbers to add to the coordinates of point.
PointF.
public static PointF op_Addition(PointF point,
SizeF size)
Translates the PointF by the specified SizeF.
point - The PointF to translate.size - The SizeF that specifies the numbers to add to the x- and y-coordinates of the point.
PointF.
public static boolean op_Equality(PointF point1,
PointF point2)
Compares two PointF structures. The result specifies whether the values of the PointF.X and PointF.Y properties of the two PointF structures are equal.
point1 - A first PointF to compare.point2 - A second PointF to compare.
PointF.X and PointF.Y 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.
PointF.X and PointF.Y values of point1 and point2 are not equal; otherwise, false.
public static PointF op_Subtraction(PointF point,
Size size)
Translates a PointF by the negative of a given Size.
point - A PointF to translate.size - A Size that specifies the numbers to substract from the x- and y-coordinates of the point.
PointF.
public static PointF op_Subtraction(PointF point,
SizeF size)
Translates a PointF by the negative of a specified SizeF.
point - The PointF to translate.size - The SizeF that specifies the numbers to subtract from the coordinates of point.
PointF.public void setX(float value)
Sets the x-coordinate of this PointF.
public void setY(float value)
Sets the y-coordinate of this PointF.
public static PointF subtract(PointF point,
Size size)
Translates a PointF by the negative of a specified size.
point - The PointF to translate.size - The Size that specifies the numbers to subtract from the coordinates of point.
PointF.
public static PointF subtract(PointF point,
SizeF size)
Translates a PointF by the negative of a specified size.
point - The PointF to translate.size - The SizeF that specifies the numbers to subtract from the coordinates of point.
PointF.public java.lang.String toString()
Converts this PointF to a human readable string.
PointF.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||