com.aspose.imaging
Class PointF

java.lang.Object
  extended by 
      extended by com.aspose.imaging.PointF

public class PointF
extends

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

PointF

public PointF()

PointF

public PointF(float x,
              float y)

Initializes a new instance of the PointF structure with the specified coordinates.

Parameters:
x - The horizontal position of the point.
y - The vertical position of the point.
Method Detail

add

public static PointF add(PointF point,
                         Size size)

Translates a given PointF by the specified Size.

Parameters:
point - The PointF to translate.
size - The Size that specifies the numbers to add to the coordinates of point.
Returns:
The translated PointF.

add

public static PointF add(PointF point,
                         SizeF size)

Translates a given PointF by a specified SizeF.

Parameters:
point - The PointF to translate.
size - The SizeF that specifies the numbers to add to the coordinates of point.
Returns:
The translated PointF.

clone

public java.lang.Object clone()

Clone

public PointF Clone()

CloneTo

public void CloneTo(PointF that)

equals

public boolean equals(java.lang.Object obj)

equals

public static boolean equals(PointF obj1,
                             PointF obj2)

getEmpty

public static PointF getEmpty()

Gets a new instance of the PointF structure that has PointF.X and PointF.Y values set to zero.


getX

public float getX()

Gets the x-coordinate of this PointF.


getY

public float getY()

Gets the y-coordinate of this PointF.


hashCode

public int hashCode()

Returns a hash code for this PointF structure.

Returns:
An integer value that specifies a hash value for this PointF structure.

isEmpty

public boolean isEmpty()

Gets a value indicating whether this PointF is empty.

Value: True if both PointF.X and PointF.Y are 0; otherwise, false.


op_Addition

public static PointF op_Addition(PointF point,
                                 Size size)

Translates a PointF by a given Size.

Parameters:
point - The PointF to translate.
size - A Size that specifies the pair of numbers to add to the coordinates of point.
Returns:
Returns the translated PointF.

op_Addition

public static PointF op_Addition(PointF point,
                                 SizeF size)

Translates the PointF by the specified SizeF.

Parameters:
point - The PointF to translate.
size - The SizeF that specifies the numbers to add to the x- and y-coordinates of the point.
Returns:
The translated PointF.

op_Equality

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.

Parameters:
point1 - A first PointF to compare.
point2 - A second PointF to compare.
Returns:
True if the PointF.X and PointF.Y values of the first and second PointF structures are equal; otherwise, false.

op_Inequality

public static boolean op_Inequality(PointF point1,
                                    PointF point2)

Determines whether the coordinates of the specified points are not equal.

Parameters:
point1 - A first PointF to compare.
point2 - A second PointF to compare.
Returns:
True to indicate the PointF.X and PointF.Y values of point1 and point2 are not equal; otherwise, false.

op_Subtraction

public static PointF op_Subtraction(PointF point,
                                    Size size)

Translates a PointF by the negative of a given Size.

Parameters:
point - A PointF to translate.
size - A Size that specifies the numbers to substract from the x- and y-coordinates of the point.
Returns:
The translated PointF.

op_Subtraction

public static PointF op_Subtraction(PointF point,
                                    SizeF size)

Translates a PointF by the negative of a specified SizeF.

Parameters:
point - The PointF to translate.
size - The SizeF that specifies the numbers to subtract from the coordinates of point.
Returns:
The translated PointF.

setX

public void setX(float value)

Sets the x-coordinate of this PointF.


setY

public void setY(float value)

Sets the y-coordinate of this PointF.


subtract

public static PointF subtract(PointF point,
                              Size size)

Translates a PointF by the negative of a specified size.

Parameters:
point - The PointF to translate.
size - The Size that specifies the numbers to subtract from the coordinates of point.
Returns:
The translated PointF.

subtract

public static PointF subtract(PointF point,
                              SizeF size)

Translates a PointF by the negative of a specified size.

Parameters:
point - The PointF to translate.
size - The SizeF that specifies the numbers to subtract from the coordinates of point.
Returns:
The translated PointF.

toString

public java.lang.String toString()

Converts this PointF to a human readable string.

Returns:
A string that represents this PointF.