PointF
Inheritance: java.lang.Object, com.aspose.ms.System.ValueType, com.aspose.ms.lang.Struct
public final class PointF extends Struct<PointF>
يمثل زوجًا مرتبًا من إحداثيات x و y عائمة يحدد نقطة في مستوى ثنائي الأبعاد.
المنشئات
| المنشئ | الوصف |
|---|---|
| PointF() | |
| PointF(float x, float y) | يُهيئ نسخة جديدة من بنية com.aspose.imaging.PointF مع الإحداثيات المحددة. |
الطرق
| طريقة | الوصف |
|---|---|
| getEmpty() | يحصل على نسخة جديدة من بنية com.aspose.imaging.PointF التي تحتوي على قيم com.aspose.imaging.PointF.X و com.aspose.imaging.PointF.Y مضبوطة على الصفر. |
| op_Addition(PointF point, Size size) | ينقل com.aspose.imaging.PointF بمقدار com.aspose.imaging.Size المحدد. |
| op_Subtraction(PointF point, Size size) | ينقل com.aspose.imaging.PointF بالسالب من com.aspose.imaging.Size المحدد. |
| op_Addition(PointF point, SizeF size) | ينقل com.aspose.imaging.PointF بالمقدار المحدد com.aspose.imaging.SizeF. |
| op_Subtraction(PointF point, SizeF size) | ينقل com.aspose.imaging.PointF بالسالب من com.aspose.imaging.SizeF المحدد. |
| op_Equality(PointF point1, PointF point2) | يقارن بنائين com.aspose.imaging.PointF. |
| op_Inequality(PointF point1, PointF point2) | يحدد ما إذا كانت إحداثيات النقاط المحددة غير متساوية. |
| add(PointF point, Size size) | ينقل com.aspose.imaging.PointF المعطى بالمقدار المحدد com.aspose.imaging.Size. |
| subtract(PointF point, Size size) | ينقل com.aspose.imaging.PointF بالسالب من الحجم المحدد. |
| add(PointF point, SizeF size) | ينقل com.aspose.imaging.PointF المعطى بالمقدار المحدد com.aspose.imaging.SizeF. |
| subtract(PointF point, SizeF size) | ينقل com.aspose.imaging.PointF بالسالب من الحجم المحدد. |
| isEquals(PointF obj1, PointF obj2) | |
| isEmpty() | يحصل على قيمة تشير إلى ما إذا كان هذا com.aspose.imaging.PointF فارغًا. |
| getX() | يحصل أو يعيّن الإحداثي السيني لهذا com.aspose.imaging.PointF. |
| setX(float value) | يحصل أو يعيّن الإحداثي السيني لهذا com.aspose.imaging.PointF. |
| getY() | يحصل أو يعيّن الإحداثي الصادي لهذا com.aspose.imaging.PointF. |
| setY(float value) | يحصل أو يعيّن الإحداثي الصادي لهذا com.aspose.imaging.PointF. |
| equals(Object obj) | يحدد ما إذا كان هذا com.aspose.imaging.PointF يحتوي على نفس الإحداثيات كما في System.Object المحدد. |
| hashCode() | يعيد رمز تجزئة لهذه بنية com.aspose.imaging.PointF. |
| toString() | يحوّل هذا com.aspose.imaging.PointF إلى سلسلة قابلة للقراءة البشرية. |
| CloneTo(PointF that) | |
| Clone() |
PointF()
public PointF()
PointF(float x, float y)
public PointF(float x, float y)
يُهيئ نسخة جديدة من بنية com.aspose.imaging.PointF مع الإحداثيات المحددة.
Parameters:
| معامل | نوع | الوصف |
|---|---|---|
| س | float | الموضع الأفقي للنقطة. |
| ص | float | الموضع الرأسي للنقطة. |
getEmpty()
public static PointF getEmpty()
يحصل على نسخة جديدة من بنية com.aspose.imaging.PointF التي تحتوي على قيم com.aspose.imaging.PointF.X و com.aspose.imaging.PointF.Y مضبوطة على الصفر.
Returns: PointF
op_Addition(PointF point, Size size)
public static PointF op_Addition(PointF point, Size size)
ينقل com.aspose.imaging.PointF بمقدار com.aspose.imaging.Size المحدد.
Parameters:
| معامل | نوع | الوصف |
|---|---|---|
| point | PointF | الـ com.aspose.imaging.PointF للترجمة. |
| size | Size | com.aspose.imaging.Size يحدد زوج الأرقام لإضافتها إلى إحداثيات point. |
Returns:
PointF - Returns the translated com.aspose.imaging.PointF.
op_Subtraction(PointF point, Size size)
public static PointF op_Subtraction(PointF point, Size size)
ينقل com.aspose.imaging.PointF بالسالب من com.aspose.imaging.Size المحدد.
Parameters:
| معامل | نوع | الوصف |
|---|---|---|
| point | PointF | com.aspose.imaging.PointF للترجمة. |
| size | Size | com.aspose.imaging.Size يحدد الأرقام لطرحها من إحداثيات x و y للـ point. |
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 بالمقدار المحدد com.aspose.imaging.SizeF.
Parameters:
| معامل | نوع | الوصف |
|---|---|---|
| point | PointF | الـ com.aspose.imaging.PointF للترجمة. |
| size | SizeF | com.aspose.imaging.SizeF يحدد الأرقام لإضافتها إلى إحداثيات x و y للـ point. |
Returns:
PointF - The translated com.aspose.imaging.PointF.
op_Subtraction(PointF point, SizeF size)
public static PointF op_Subtraction(PointF point, SizeF size)
ينقل com.aspose.imaging.PointF بالسالب من com.aspose.imaging.SizeF المحدد.
Parameters:
| معامل | نوع | الوصف |
|---|---|---|
| point | PointF | الـ com.aspose.imaging.PointF للترجمة. |
| size | SizeF | com.aspose.imaging.SizeF يحدد الأرقام لطرحها من إحداثيات point. |
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 اثنين. النتيجة تحدد ما إذا كانت قيم خصائص com.aspose.imaging.PointF.X و com.aspose.imaging.PointF.Y للهيكلين com.aspose.imaging.PointF متساوية.
Parameters:
| معامل | نوع | الوصف |
|---|---|---|
| point1 | PointF | com.aspose.imaging.PointF الأول للمقارنة. |
| point2 | PointF | com.aspose.imaging.PointF الثاني للمقارنة. |
Returns:
منطقي - صحيح إذا كانت قيم com.aspose.imaging.PointF.X و com.aspose.imaging.PointF.Y للهيكلين الأول والثاني com.aspose.imaging.PointF متساوية؛ وإلا، خطأ.
op_Inequality(PointF point1, PointF point2)
public static boolean op_Inequality(PointF point1, PointF point2)
يحدد ما إذا كانت إحداثيات النقاط المحددة غير متساوية.
Parameters:
| معامل | نوع | الوصف |
|---|---|---|
| point1 | PointF | com.aspose.imaging.PointF الأول للمقارنة. |
| point2 | PointF | com.aspose.imaging.PointF الثاني للمقارنة. |
Returns:
منطقي - صحيح للدلالة على أن قيم com.aspose.imaging.PointF.X و com.aspose.imaging.PointF.Y للـ point1 و point2 غير متساوية؛ وإلا، خطأ.
add(PointF point, Size size)
public static PointF add(PointF point, Size size)
ينقل com.aspose.imaging.PointF المعطى بالمقدار المحدد com.aspose.imaging.Size.
Parameters:
| معامل | نوع | الوصف |
|---|---|---|
| point | PointF | الـ com.aspose.imaging.PointF للترجمة. |
| size | Size | com.aspose.imaging.Size يحدد الأرقام لإضافتها إلى إحداثيات point. |
Returns:
PointF - The translated com.aspose.imaging.PointF.
subtract(PointF point, Size size)
public static PointF subtract(PointF point, Size size)
ينقل com.aspose.imaging.PointF بالسالب من الحجم المحدد.
Parameters:
| معامل | نوع | الوصف |
|---|---|---|
| point | PointF | الـ com.aspose.imaging.PointF للترجمة. |
| size | Size | com.aspose.imaging.Size يحدد الأرقام لطرحها من إحداثيات point. |
Returns:
PointF - The translated com.aspose.imaging.PointF.
add(PointF point, SizeF size)
public static PointF add(PointF point, SizeF size)
ينقل com.aspose.imaging.PointF المعطى بالمقدار المحدد com.aspose.imaging.SizeF.
Parameters:
| معامل | نوع | الوصف |
|---|---|---|
| point | PointF | الـ com.aspose.imaging.PointF للترجمة. |
| size | SizeF | com.aspose.imaging.SizeF يحدد الأرقام لإضافتها إلى إحداثيات point. |
Returns:
PointF - The translated com.aspose.imaging.PointF.
subtract(PointF point, SizeF size)
public static PointF subtract(PointF point, SizeF size)
ينقل com.aspose.imaging.PointF بالسالب من الحجم المحدد.
Parameters:
| معامل | نوع | الوصف |
|---|---|---|
| point | PointF | الـ com.aspose.imaging.PointF للترجمة. |
| size | SizeF | com.aspose.imaging.SizeF يحدد الأرقام لطرحها من إحداثيات point. |
Returns:
PointF - The translated com.aspose.imaging.PointF.
isEquals(PointF obj1, PointF obj2)
public static boolean isEquals(PointF obj1, PointF obj2)
Parameters:
| معامل | نوع | الوصف |
|---|---|---|
| obj1 | PointF | |
| obj2 | PointF |
Returns: boolean
isEmpty()
public boolean isEmpty()
يحصل على قيمة تشير إلى ما إذا كان هذا com.aspose.imaging.PointF فارغًا.
Returns:
منطقي - صحيح إذا كان كل من com.aspose.imaging.PointF.X و com.aspose.imaging.PointF.Y يساوي 0؛ وإلا، خطأ.
getX()
public float getX()
يحصل أو يعيّن الإحداثي السيني لهذا com.aspose.imaging.PointF.
Returns: float
setX(float value)
public void setX(float value)
يحصل أو يعيّن الإحداثي السيني لهذا com.aspose.imaging.PointF.
Parameters:
| معامل | نوع | الوصف |
|---|---|---|
| القيمة | float |
getY()
public float getY()
يحصل أو يعيّن الإحداثي الصادي لهذا com.aspose.imaging.PointF.
Returns: float
setY(float value)
public void setY(float value)
يحصل أو يعيّن الإحداثي الصادي لهذا com.aspose.imaging.PointF.
Parameters:
| معامل | نوع | الوصف |
|---|---|---|
| القيمة | float |
equals(Object obj)
public boolean equals(Object obj)
يحدد ما إذا كان هذا com.aspose.imaging.PointF يحتوي على نفس الإحداثيات كما في System.Object المحدد.
Parameters:
| معامل | نوع | الوصف |
|---|---|---|
| obj | java.lang.Object | الـ System.Object للاختبار. |
Returns:
منطقي - تُعيد هذه الطريقة صحيح إذا كان obj هو com.aspose.imaging.PointF وله نفس الإحداثيات مثل هذا com.aspose.imaging.Point.
hashCode()
public int hashCode()
يعيد رمز تجزئة لهذه بنية com.aspose.imaging.PointF.
Returns:
عدد صحيح - قيمة عددية تحدد قيمة تجزئة لهذا الهيكل com.aspose.imaging.PointF.
toString()
public String toString()
يحوّل هذا com.aspose.imaging.PointF إلى سلسلة قابلة للقراءة البشرية.
Returns:
java.lang.String - سلسلة تمثل هذا com.aspose.imaging.PointF.
CloneTo(PointF that)
public void CloneTo(PointF that)
Parameters:
| معامل | نوع | الوصف |
|---|---|---|
| that | PointF |
Clone()
public PointF Clone()
Returns: PointF