PointF

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

public final class PointF extends Struct<PointF>

İki boyutlu bir düzlemde bir noktayı tanımlayan kayan noktalı x ve y koordinatlarından oluşan sıralı bir çift temsil eder.

Yapıcılar

YapıcıAçıklama
PointF()
PointF(float x, float y)Belirtilen koordinatlarla com.aspose.imaging.PointF yapısının yeni bir örneğini başlatır.

Yöntemler

YöntemAçıklama
getEmpty()com.aspose.imaging.PointF.X ve com.aspose.imaging.PointF.Y değerleri sıfıra ayarlanmış com.aspose.imaging.PointF yapısının yeni bir örneğini alır.
op_Addition(PointF point, Size size)Bir com.aspose.imaging.PointF öğesini verilen bir com.aspose.imaging.Size ile çevirir.
op_Subtraction(PointF point, Size size)Bir com.aspose.imaging.PointF öğesini verilen bir com.aspose.imaging.Size‘ın negatifine göre çevirir.
op_Addition(PointF point, SizeF size)com.aspose.imaging.PointF öğesini belirtilen com.aspose.imaging.SizeF ile çevirir.
op_Subtraction(PointF point, SizeF size)Bir com.aspose.imaging.PointF öğesini belirtilen com.aspose.imaging.SizeF‘ın negatifine göre çevirir.
op_Equality(PointF point1, PointF point2)İki com.aspose.imaging.PointF yapısını karşılaştırır.
op_Inequality(PointF point1, PointF point2)Belirtilen noktaların koordinatlarının eşit olmadığını belirler.
add(PointF point, Size size)Verilen bir com.aspose.imaging.PointF öğesini belirtilen com.aspose.imaging.Size ile çevirir.
subtract(PointF point, Size size)Bir com.aspose.imaging.PointF öğesini belirtilen boyutun negatifine göre çevirir.
add(PointF point, SizeF size)Verilen bir com.aspose.imaging.PointF öğesini belirtilen com.aspose.imaging.SizeF ile çevirir.
subtract(PointF point, SizeF size)Bir com.aspose.imaging.PointF öğesini belirtilen boyutun negatifine göre çevirir.
isEquals(PointF obj1, PointF obj2)
isEmpty()Bu com.aspose.imaging.PointF öğesinin boş olup olmadığını gösteren bir değeri alır.
getX()Bu com.aspose.imaging.PointF öğesinin x-koordinatını alır veya ayarlar.
setX(float value)Bu com.aspose.imaging.PointF öğesinin x-koordinatını alır veya ayarlar.
getY()Bu com.aspose.imaging.PointF öğesinin y-koordinatını alır veya ayarlar.
setY(float value)Bu com.aspose.imaging.PointF öğesinin y-koordinatını alır veya ayarlar.
equals(Object obj)Bu com.aspose.imaging.PointF öğesinin belirtilen System.Object ile aynı koordinatları içerip içermediğini belirtir.
hashCode()Bu com.aspose.imaging.PointF yapısı için bir karma kod (hash code) döndürür.
toString()Bu com.aspose.imaging.PointF öğesini insan tarafından okunabilir bir dizeye dönüştürür.
CloneTo(PointF that)
Clone()

PointF()

public PointF()

PointF(float x, float y)

public PointF(float x, float y)

Belirtilen koordinatlarla com.aspose.imaging.PointF yapısının yeni bir örneğini başlatır.

Parameters:

ParametreTürAçıklama
xfloatNoktanın yatay konumu.
yfloatNoktanın dikey konumu.

getEmpty()

public static PointF getEmpty()

com.aspose.imaging.PointF.X ve com.aspose.imaging.PointF.Y değerleri sıfıra ayarlanmış com.aspose.imaging.PointF yapısının yeni bir örneğini alır.

Returns: PointF

op_Addition(PointF point, Size size)

public static PointF op_Addition(PointF point, Size size)

Bir com.aspose.imaging.PointF öğesini verilen bir com.aspose.imaging.Size ile çevirir.

Parameters:

ParametreTürAçıklama
pointPointFÇevrilecek com.aspose.imaging.PointF.
sizeSizepoint koordinatlarına eklenecek sayı çiftini belirten bir com.aspose.imaging.Size.

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

op_Subtraction(PointF point, Size size)

public static PointF op_Subtraction(PointF point, Size size)

Bir com.aspose.imaging.PointF öğesini verilen bir com.aspose.imaging.Size‘ın negatifine göre çevirir.

Parameters:

ParametreTürAçıklama
pointPointFÇevrilecek bir com.aspose.imaging.PointF.
sizeSizepoint‘in x ve y koordinatlarından çıkarılacak sayıları belirten bir com.aspose.imaging.Size.

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

op_Addition(PointF point, SizeF size)

public static PointF op_Addition(PointF point, SizeF size)

com.aspose.imaging.PointF öğesini belirtilen com.aspose.imaging.SizeF ile çevirir.

Parameters:

ParametreTürAçıklama
pointPointFÇevrilecek com.aspose.imaging.PointF.
sizeSizeFpoint‘in x ve y koordinatlarına eklenecek sayıları belirten com.aspose.imaging.SizeF.

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

op_Subtraction(PointF point, SizeF size)

public static PointF op_Subtraction(PointF point, SizeF size)

Bir com.aspose.imaging.PointF öğesini belirtilen com.aspose.imaging.SizeF‘ın negatifine göre çevirir.

Parameters:

ParametreTürAçıklama
pointPointFÇevrilecek com.aspose.imaging.PointF.
sizeSizeFpoint koordinatlarından çıkarılacak sayıları belirten com.aspose.imaging.SizeF.

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

op_Equality(PointF point1, PointF point2)

public static boolean op_Equality(PointF point1, PointF point2)

com.aspose.imaging.PointF yapılarını karşılaştırır. Sonuç, iki com.aspose.imaging.PointF yapısının com.aspose.imaging.PointF.X ve com.aspose.imaging.PointF.Y özellik değerlerinin eşit olup olmadığını belirtir.

Parameters:

ParametreTürAçıklama
point1PointFKarşılaştırılacak ilk com.aspose.imaging.PointF.
point2PointFKarşılaştırılacak ikinci com.aspose.imaging.PointF.

Returns: boolean - İlk ve ikinci com.aspose.imaging.PointF yapıların com.aspose.imaging.PointF.X ve com.aspose.imaging.PointF.Y değerleri eşitse true; aksi takdirde false.

op_Inequality(PointF point1, PointF point2)

public static boolean op_Inequality(PointF point1, PointF point2)

Belirtilen noktaların koordinatlarının eşit olmadığını belirler.

Parameters:

ParametreTürAçıklama
point1PointFKarşılaştırılacak ilk com.aspose.imaging.PointF.
point2PointFKarşılaştırılacak ikinci com.aspose.imaging.PointF.

Returns: boolean - point1 ve point2‘nin com.aspose.imaging.PointF.X ve com.aspose.imaging.PointF.Y değerlerinin eşit olmadığını göstermek için true; aksi takdirde false.

add(PointF point, Size size)

public static PointF add(PointF point, Size size)

Verilen bir com.aspose.imaging.PointF öğesini belirtilen com.aspose.imaging.Size ile çevirir.

Parameters:

ParametreTürAçıklama
pointPointFÇevrilecek com.aspose.imaging.PointF.
sizeSizepoint koordinatlarına eklenecek sayıları belirten com.aspose.imaging.Size.

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

subtract(PointF point, Size size)

public static PointF subtract(PointF point, Size size)

Bir com.aspose.imaging.PointF öğesini belirtilen boyutun negatifine göre çevirir.

Parameters:

ParametreTürAçıklama
pointPointFÇevrilecek com.aspose.imaging.PointF.
sizeSizepoint koordinatlarından çıkarılacak sayıları belirten com.aspose.imaging.Size.

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

add(PointF point, SizeF size)

public static PointF add(PointF point, SizeF size)

Verilen bir com.aspose.imaging.PointF öğesini belirtilen com.aspose.imaging.SizeF ile çevirir.

Parameters:

ParametreTürAçıklama
pointPointFÇevrilecek com.aspose.imaging.PointF.
sizeSizeFpoint koordinatlarına eklenecek sayıları belirten com.aspose.imaging.SizeF.

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

subtract(PointF point, SizeF size)

public static PointF subtract(PointF point, SizeF size)

Bir com.aspose.imaging.PointF öğesini belirtilen boyutun negatifine göre çevirir.

Parameters:

ParametreTürAçıklama
pointPointFÇevrilecek com.aspose.imaging.PointF.
sizeSizeFpoint koordinatlarından çıkarılacak sayıları belirten com.aspose.imaging.SizeF.

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

isEquals(PointF obj1, PointF obj2)

public static boolean isEquals(PointF obj1, PointF obj2)

Parameters:

ParametreTürAçıklama
obj1PointF
obj2PointF

Returns: boolean

isEmpty()

public boolean isEmpty()

Bu com.aspose.imaging.PointF öğesinin boş olup olmadığını gösteren bir değeri alır.

Returns: boolean - com.aspose.imaging.PointF.X ve com.aspose.imaging.PointF.Y her ikisi de 0 ise true; aksi takdirde false.

getX()

public float getX()

Bu com.aspose.imaging.PointF öğesinin x-koordinatını alır veya ayarlar.

Returns: float

setX(float value)

public void setX(float value)

Bu com.aspose.imaging.PointF öğesinin x-koordinatını alır veya ayarlar.

Parameters:

ParametreTürAçıklama
değerfloat

getY()

public float getY()

Bu com.aspose.imaging.PointF öğesinin y-koordinatını alır veya ayarlar.

Returns: float

setY(float value)

public void setY(float value)

Bu com.aspose.imaging.PointF öğesinin y-koordinatını alır veya ayarlar.

Parameters:

ParametreTürAçıklama
değerfloat

equals(Object obj)

public boolean equals(Object obj)

Bu com.aspose.imaging.PointF öğesinin belirtilen System.Object ile aynı koordinatları içerip içermediğini belirtir.

Parameters:

ParametreTürAçıklama
objjava.lang.ObjectTest edilecek System.Object.

Returns: boolean - obj bir com.aspose.imaging.PointF ise ve bu com.aspose.imaging.Point ile aynı koordinatlara sahipse true döndürür.

hashCode()

public int hashCode()

Bu com.aspose.imaging.PointF yapısı için bir karma kod (hash code) döndürür.

Returns: int - Bu com.aspose.imaging.PointF yapısı için bir karma (hash) değeri belirten tam sayı değeri.

toString()

public String toString()

Bu com.aspose.imaging.PointF öğesini insan tarafından okunabilir bir dizeye dönüştürür.

Returns: java.lang.String - Bu com.aspose.imaging.PointF‘i temsil eden bir dize.

CloneTo(PointF that)

public void CloneTo(PointF that)

Parameters:

ParametreTürAçıklama
thatPointF

Clone()

public PointF Clone()

Returns: PointF