FVector2
Inheritance: java.lang.Object
All Implemented Interfaces: com.aspose.threed.Struct, java.io.Serializable
public final class FVector2 implements Struct<FVector2>, Serializable
متجه float مكوّن من عنصرين.
المنشئات
| منشئ | الوصف |
|---|---|
| FVector2(float x, float y) | يُنشئ مثيلًا جديدًا من FVector2. |
| FVector2(Vector2 vec) | يُنشئ مثيلًا جديدًا من FVector2. |
| FVector2() |
الحقول
| حقل | الوصف |
|---|---|
| x | المكوّن x. |
| y | المكوّن y. |
الطرق
| طريقة | الوصف |
|---|---|
| add(FVector2 a, FVector2 b) | + تحميل المشغل |
| clone() | |
| copyFrom(FVector2 src) | |
| create(FVector2 v) | مشغل التحويل الصريح لتحويل FVector2 إلى Vector2 |
| equals(FVector2 rhs) | تحقق مما إذا كان المتجهان متساويين |
| equals(Object obj) | تحقق مما إذا كان المتجهان متساويين |
| getClass() | |
| hashCode() | يحصل على رمز التجزئة لهذه الحالة |
| mul(FVector2 a, float b) | * تحميل المشغل |
| notify() | |
| notifyAll() | |
| op_eq(FVector2 a, FVector2 b) | == تحميل المشغل |
| op_ne(FVector2 a, FVector2 b) | != تحميل المشغل |
| sub(FVector2 a, FVector2 b) | - تحميل المشغل |
| toString() | يعيد سلسلة تمثل FVector2 |
| wait() | |
| wait(long arg0) | |
| wait(long arg0, int arg1) |
FVector2(float x, float y)
public FVector2(float x, float y)
يُنشئ مثيلًا جديدًا من FVector2.
Parameters:
| معامل | نوع | الوصف |
|---|---|---|
| x | float | المكوّن X للمتجه |
| y | float | المكوّن Y للمتجه |
FVector2(Vector2 vec)
public FVector2(Vector2 vec)
يُنشئ مثيلًا جديدًا من FVector2.
Parameters:
| معامل | نوع | الوصف |
|---|---|---|
| vec | Vector2 | Vector2 بنوع double |
FVector2()
public FVector2()
x
public float x
المكوّن x.
y
public float y
المكوّن y.
add(FVector2 a, FVector2 b)
public static FVector2 add(FVector2 a, FVector2 b)
+ تحميل المشغل
Parameters:
| معامل | نوع | الوصف |
|---|---|---|
| a | FVector2 | المتجه الأول |
| b | FVector2 | المتجه الثاني |
Returns: FVector2 - The sum of two vectors.
clone()
public FVector2 clone()
استنساخ النسخة الحالية
Returns: FVector2
copyFrom(FVector2 src)
public void copyFrom(FVector2 src)
Parameters:
| معامل | نوع | الوصف |
|---|---|---|
| src | FVector2 |
create(FVector2 v)
public static Vector2 create(FVector2 v)
مشغل التحويل الصريح لتحويل FVector2 إلى Vector2
Parameters:
| معامل | نوع | الوصف |
|---|---|---|
| v | FVector2 | Vector 2 بنوع float. |
Returns: Vector2
equals(FVector2 rhs)
public boolean equals(FVector2 rhs)
تحقق مما إذا كان المتجهان متساويين
Parameters:
| معامل | نوع | الوصف |
|---|---|---|
| rhs | FVector2 |
Returns: منطقي - صحيح إذا كانت جميع المكوّنات متساوية.
equals(Object obj)
public boolean equals(Object obj)
تحقق مما إذا كان المتجهان متساويين
Parameters:
| معامل | نوع | الوصف |
|---|---|---|
| obj | java.lang.Object |
Returns: منطقي - صحيح إذا كان الإدخال متجهًا وجميع المكوّنات متساوية.
getClass()
public final native Class<?> getClass()
Returns: java.lang.Class
hashCode()
public int hashCode()
يحصل على رمز التجزئة لهذه الحالة
Returns: عدد صحيح - رمز التجزئة للمتجه.
mul(FVector2 a, float b)
public static FVector2 mul(FVector2 a, float b)
* تحميل المشغل
Parameters:
| معامل | نوع | الوصف |
|---|---|---|
| a | FVector2 | المتجه الأول |
| b | float | المتجه الثاني |
Returns: FVector2 - The product of two vectors.
notify()
public final native void notify()
notifyAll()
public final native void notifyAll()
op_eq(FVector2 a, FVector2 b)
public static boolean op_eq(FVector2 a, FVector2 b)
== تحميل المشغل
Parameters:
| معامل | نوع | الوصف |
|---|---|---|
| a | FVector2 | المتجه الأول |
| b | FVector2 | المتجه الثاني |
Returns: منطقي - صحيح إذا كانت جميع المكوّنات متساوية.
op_ne(FVector2 a, FVector2 b)
public static boolean op_ne(FVector2 a, FVector2 b)
!= Operator overloading
Parameters:
| معامل | نوع | الوصف |
|---|---|---|
| a | FVector2 | المتجه الأول |
| b | FVector2 | المتجه الثاني |
Returns: منطقي - صحيح إذا كان أي مكوّن مختلف.
sub(FVector2 a, FVector2 b)
public static FVector2 sub(FVector2 a, FVector2 b)
- تحميل المشغل
Parameters:
| معامل | نوع | الوصف |
|---|---|---|
| a | FVector2 | المتجه الأول |
| b | FVector2 | المتجه الثاني |
Returns: FVector2 - The difference of two vectors.
toString()
public String toString()
يعيد سلسلة تمثل FVector2
Returns: java.lang.String - تمثيل سلسلة للمتجه الحالي.
wait()
public final void wait()
wait(long arg0)
public final void wait(long arg0)
Parameters:
| معامل | نوع | الوصف |
|---|---|---|
| arg0 | long |
wait(long arg0, int arg1)
public final void wait(long arg0, int arg1)
Parameters:
| معامل | نوع | الوصف |
|---|---|---|
| arg0 | long | |
| arg1 | int |