PointF

Inheritance: java.lang.Object, com.aspose.ms.System.ValueType, com.aspose.ms.lang.Struct

public final class PointF extends Struct<PointF>

Represents an ordered pair of floating-point x- and y-coordinates that defines a point in a two-dimensional plane.

Constructors

ConstructorDescription
PointF()
PointF(float x, float y)Initializes a new instance of the com.aspose.psd.PointF structure with the specified coordinates.

Methods

MethodDescription
Clone()
CloneTo(T arg0)
CloneTo(PointF that)
add(PointF point, Size size)Translates a given com.aspose.psd.PointF by the specified com.aspose.psd.Size .
add(PointF point, SizeF size)Translates a given com.aspose.psd.PointF by a specified com.aspose.psd.SizeF .
equals(Object obj)Specifies whether this com.aspose.psd.PointF contains the same coordinates as the specified System.Object .
getClass()
getEmpty()Gets a new instance of the com.aspose.psd.PointF structure that has com.aspose.psd.PointF.X and com.aspose.psd.PointF.Y values set to zero.
getX()Gets or sets the x-coordinate of this com.aspose.psd.PointF .
getY()Gets or sets the y-coordinate of this com.aspose.psd.PointF .
hashCode()Returns a hash code for this com.aspose.psd.PointF structure.
isEmpty()Gets a value indicating whether this com.aspose.psd.PointF is empty.
isEquals(PointF obj1, PointF obj2)
notify()
notifyAll()
op_Addition(PointF point, Size size)Translates a com.aspose.psd.PointF by a given com.aspose.psd.Size .
op_Addition(PointF point, SizeF size)Translates the com.aspose.psd.PointF by the specified com.aspose.psd.SizeF .
op_Equality(PointF point1, PointF point2)Compares two com.aspose.psd.PointF structures.
op_Inequality(PointF point1, PointF point2)Determines whether the coordinates of the specified points are not equal.
op_Subtraction(PointF point, Size size)Translates a com.aspose.psd.PointF by the negative of a given com.aspose.psd.Size .
op_Subtraction(PointF point, SizeF size)Translates a com.aspose.psd.PointF by the negative of a specified com.aspose.psd.SizeF .
setX(float value)Gets or sets the x-coordinate of this com.aspose.psd.PointF .
setY(float value)Gets or sets the y-coordinate of this com.aspose.psd.PointF .
subtract(PointF point, Size size)Translates a com.aspose.psd.PointF by the negative of a specified size.
subtract(PointF point, SizeF size)Translates a com.aspose.psd.PointF by the negative of a specified size.
toString()Converts this com.aspose.psd.PointF to a human readable string.
wait()
wait(long arg0)
wait(long arg0, int arg1)

PointF()

public PointF()

PointF(float x, float y)

public PointF(float x, float y)

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

Parameters:

ParameterTypeDescription
xfloatThe horizontal position of the point.
yfloatThe vertical position of the point.

Clone()

public PointF Clone()

Returns: PointF

CloneTo(T arg0)

public abstract void CloneTo(T arg0)

Parameters:

ParameterTypeDescription
arg0T

CloneTo(PointF that)

public void CloneTo(PointF that)

Parameters:

ParameterTypeDescription
thatPointF

add(PointF point, Size size)

public static PointF add(PointF point, Size size)

Translates a given com.aspose.psd.PointF by the specified com.aspose.psd.Size .

Parameters:

ParameterTypeDescription
pointPointFThe com.aspose.psd.PointF to translate.
sizeSizeThe com.aspose.psd.Size that specifies the numbers to add to the coordinates of point .

Returns: PointF - The translated com.aspose.psd.PointF .

add(PointF point, SizeF size)

public static PointF add(PointF point, SizeF size)

Translates a given com.aspose.psd.PointF by a specified com.aspose.psd.SizeF .

Parameters:

ParameterTypeDescription
pointPointFThe com.aspose.psd.PointF to translate.
sizeSizeFThe com.aspose.psd.SizeF that specifies the numbers to add to the coordinates of point .

Returns: PointF - The translated com.aspose.psd.PointF .

equals(Object obj)

public boolean equals(Object obj)

Specifies whether this com.aspose.psd.PointF contains the same coordinates as the specified System.Object .

Parameters:

ParameterTypeDescription
objjava.lang.ObjectThe System.Object to test.

Returns: boolean - This method returns true if obj is a com.aspose.psd.PointF and has the same coordinates as this com.aspose.psd.Point .

getClass()

public final native Class<?> getClass()

Returns: java.lang.Class

getEmpty()

public static PointF getEmpty()

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

Returns: PointF

getX()

public float getX()

Gets or sets the x-coordinate of this com.aspose.psd.PointF .

Returns: float

getY()

public float getY()

Gets or sets the y-coordinate of this com.aspose.psd.PointF .

Returns: float

hashCode()

public int hashCode()

Returns a hash code for this com.aspose.psd.PointF structure.

Returns: int - An integer value that specifies a hash value for this com.aspose.psd.PointF structure.

isEmpty()

public boolean isEmpty()

Gets a value indicating whether this com.aspose.psd.PointF is empty.

Returns: boolean - True if both com.aspose.psd.PointF.X and com.aspose.psd.PointF.Y are 0; otherwise, false.

isEquals(PointF obj1, PointF obj2)

public static boolean isEquals(PointF obj1, PointF obj2)

Parameters:

ParameterTypeDescription
obj1PointF
obj2PointF

Returns: boolean

notify()

public final native void notify()

notifyAll()

public final native void notifyAll()

op_Addition(PointF point, Size size)

public static PointF op_Addition(PointF point, Size size)

Translates a com.aspose.psd.PointF by a given com.aspose.psd.Size .

Parameters:

ParameterTypeDescription
pointPointFThe com.aspose.psd.PointF to translate.
sizeSizeA com.aspose.psd.Size that specifies the pair of numbers to add to the coordinates of point .

Returns: PointF - Returns the translated com.aspose.psd.PointF .

op_Addition(PointF point, SizeF size)

public static PointF op_Addition(PointF point, SizeF size)

Translates the com.aspose.psd.PointF by the specified com.aspose.psd.SizeF .

Parameters:

ParameterTypeDescription
pointPointFThe com.aspose.psd.PointF to translate.
sizeSizeFThe com.aspose.psd.SizeF that specifies the numbers to add to the x- and y-coordinates of the point .

Returns: PointF - The translated com.aspose.psd.PointF .

op_Equality(PointF point1, PointF point2)

public static boolean op_Equality(PointF point1, PointF point2)

Compares two com.aspose.psd.PointF structures. The result specifies whether the values of the com.aspose.psd.PointF.X and com.aspose.psd.PointF.Y properties of the two com.aspose.psd.PointF structures are equal.

Parameters:

ParameterTypeDescription
point1PointFA first com.aspose.psd.PointF to compare.
point2PointFA second com.aspose.psd.PointF to compare.

Returns: boolean - True if the com.aspose.psd.PointF.X and com.aspose.psd.PointF.Y values of the first and second com.aspose.psd.PointF structures are equal; otherwise, false.

op_Inequality(PointF point1, PointF point2)

public static boolean op_Inequality(PointF point1, PointF point2)

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

Parameters:

ParameterTypeDescription
point1PointFA first com.aspose.psd.PointF to compare.
point2PointFA second com.aspose.psd.PointF to compare.

Returns: boolean - True to indicate the com.aspose.psd.PointF.X and com.aspose.psd.PointF.Y values of point1 and point2 are not equal; otherwise, false.

op_Subtraction(PointF point, Size size)

public static PointF op_Subtraction(PointF point, Size size)

Translates a com.aspose.psd.PointF by the negative of a given com.aspose.psd.Size .

Parameters:

ParameterTypeDescription
pointPointFA com.aspose.psd.PointF to translate.
sizeSizeA com.aspose.psd.Size that specifies the numbers to subtract from the x- and y-coordinates of the point .

Returns: PointF - The translated com.aspose.psd.PointF .

op_Subtraction(PointF point, SizeF size)

public static PointF op_Subtraction(PointF point, SizeF size)

Translates a com.aspose.psd.PointF by the negative of a specified com.aspose.psd.SizeF .

Parameters:

ParameterTypeDescription
pointPointFThe com.aspose.psd.PointF to translate.
sizeSizeFThe com.aspose.psd.SizeF that specifies the numbers to subtract from the coordinates of point .

Returns: PointF - The translated com.aspose.psd.PointF .

setX(float value)

public void setX(float value)

Gets or sets the x-coordinate of this com.aspose.psd.PointF .

Parameters:

ParameterTypeDescription
valuefloat

setY(float value)

public void setY(float value)

Gets or sets the y-coordinate of this com.aspose.psd.PointF .

Parameters:

ParameterTypeDescription
valuefloat

subtract(PointF point, Size size)

public static PointF subtract(PointF point, Size size)

Translates a com.aspose.psd.PointF by the negative of a specified size.

Parameters:

ParameterTypeDescription
pointPointFThe com.aspose.psd.PointF to translate.
sizeSizeThe com.aspose.psd.Size that specifies the numbers to subtract from the coordinates of point .

Returns: PointF - The translated com.aspose.psd.PointF .

subtract(PointF point, SizeF size)

public static PointF subtract(PointF point, SizeF size)

Translates a com.aspose.psd.PointF by the negative of a specified size.

Parameters:

ParameterTypeDescription
pointPointFThe com.aspose.psd.PointF to translate.
sizeSizeFThe com.aspose.psd.SizeF that specifies the numbers to subtract from the coordinates of point .

Returns: PointF - The translated com.aspose.psd.PointF .

toString()

public String toString()

Converts this com.aspose.psd.PointF to a human readable string.

Returns: java.lang.String - A string that represents this com.aspose.psd.PointF .

wait()

public final void wait()

wait(long arg0)

public final void wait(long arg0)

Parameters:

ParameterTypeDescription
arg0long

wait(long arg0, int arg1)

public final void wait(long arg0, int arg1)

Parameters:

ParameterTypeDescription
arg0long
arg1int