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öntem | Açı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:
| Parametre | Tür | Açıklama |
|---|---|---|
| x | float | Noktanın yatay konumu. |
| y | float | Noktanı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:
| Parametre | Tür | Açıklama |
|---|---|---|
| point | PointF | Çevrilecek com.aspose.imaging.PointF. |
| size | Size | point 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:
| Parametre | Tür | Açıklama |
|---|---|---|
| point | PointF | Çevrilecek bir com.aspose.imaging.PointF. |
| size | Size | point‘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:
| Parametre | Tür | Açıklama |
|---|---|---|
| point | PointF | Çevrilecek com.aspose.imaging.PointF. |
| size | SizeF | point‘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:
| Parametre | Tür | Açıklama |
|---|---|---|
| point | PointF | Çevrilecek com.aspose.imaging.PointF. |
| size | SizeF | point 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:
| Parametre | Tür | Açıklama |
|---|---|---|
| point1 | PointF | Karşılaştırılacak ilk com.aspose.imaging.PointF. |
| point2 | PointF | Karşı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:
| Parametre | Tür | Açıklama |
|---|---|---|
| point1 | PointF | Karşılaştırılacak ilk com.aspose.imaging.PointF. |
| point2 | PointF | Karşı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:
| Parametre | Tür | Açıklama |
|---|---|---|
| point | PointF | Çevrilecek com.aspose.imaging.PointF. |
| size | Size | point 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:
| Parametre | Tür | Açıklama |
|---|---|---|
| point | PointF | Çevrilecek com.aspose.imaging.PointF. |
| size | Size | point 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:
| Parametre | Tür | Açıklama |
|---|---|---|
| point | PointF | Çevrilecek com.aspose.imaging.PointF. |
| size | SizeF | point 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:
| Parametre | Tür | Açıklama |
|---|---|---|
| point | PointF | Çevrilecek com.aspose.imaging.PointF. |
| size | SizeF | point 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:
| Parametre | Tür | Açıklama |
|---|---|---|
| obj1 | PointF | |
| obj2 | PointF |
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:
| Parametre | Tür | Açıklama |
|---|---|---|
| değer | float |
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:
| Parametre | Tür | Açıklama |
|---|---|---|
| değer | float |
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:
| Parametre | Tür | Açıklama |
|---|---|---|
| obj | java.lang.Object | Test 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:
| Parametre | Tür | Açıklama |
|---|---|---|
| that | PointF |
Clone()
public PointF Clone()
Returns: PointF