FVector2
Inheritance: java.lang.Object
All Implemented Interfaces: com.aspose.threed.Struct, java.io.Serializable
public final class FVector2 implements Struct<FVector2>, Serializable
İki bileşenli bir float vektör.
Yapıcılar
| Yapıcı | Açıklama |
|---|---|
| FVector2(float x, float y) | FVector2 nesnesinin yeni bir örneği başlatılır. |
| FVector2(Vector2 vec) | FVector2 nesnesinin yeni bir örneği başlatılır. |
| FVector2() |
Alanlar
| Alan | Açıklama |
|---|---|
| x | x bileşeni. |
| y | y bileşeni. |
Yöntemler
| Yöntem | Açıklama |
|---|---|
| add(FVector2 a, FVector2 b) | + Operatör aşırı yükleme |
| clone() | |
| copyFrom(FVector2 src) | |
| create(FVector2 v) | FVector2’yi Vector2’ye dönüştürmek için açık dönüşüm operatörü |
| equals(FVector2 rhs) | İki vektörün eşit olup olmadığını kontrol et |
| equals(Object obj) | İki vektörün eşit olup olmadığını kontrol et |
| getClass() | |
| hashCode() | Bu örneğin hash kodunu alır |
| mul(FVector2 a, float b) | * operatör aşırı yükleme |
| notify() | |
| notifyAll() | |
| op_eq(FVector2 a, FVector2 b) | == Operatör aşırı yükleme |
| op_ne(FVector2 a, FVector2 b) | != Operatör aşırı yükleme |
| sub(FVector2 a, FVector2 b) | - Operatör aşırı yükleme |
| toString() | FVector2 öğesini temsil eden bir dize döndürür |
| wait() | |
| wait(long arg0) | |
| wait(long arg0, int arg1) |
FVector2(float x, float y)
public FVector2(float x, float y)
FVector2 nesnesinin yeni bir örneği başlatılır.
Parameters:
| Parametre | Tür | Açıklama |
|---|---|---|
| x | float | Vektörün X bileşeni |
| y | float | Vektörün Y bileşeni |
FVector2(Vector2 vec)
public FVector2(Vector2 vec)
FVector2 nesnesinin yeni bir örneği başlatılır.
Parameters:
| Parametre | Tür | Açıklama |
|---|---|---|
| vec | Vector2 | Double tipinde Vector2 |
FVector2()
public FVector2()
x
public float x
x bileşeni.
y
public float y
y bileşeni.
add(FVector2 a, FVector2 b)
public static FVector2 add(FVector2 a, FVector2 b)
+ Operatör aşırı yükleme
Parameters:
| Parametre | Tür | Açıklama |
|---|---|---|
| a | FVector2 | İlk vektör |
| b | FVector2 | İkinci vektör |
Returns: FVector2 - The sum of two vectors.
clone()
public FVector2 clone()
Mevcut örneği kopyala
Returns: FVector2
copyFrom(FVector2 src)
public void copyFrom(FVector2 src)
Parameters:
| Parametre | Tür | Açıklama |
|---|---|---|
| src | FVector2 |
create(FVector2 v)
public static Vector2 create(FVector2 v)
FVector2’yi Vector2’ye dönüştürmek için açık dönüşüm operatörü
Parameters:
| Parametre | Tür | Açıklama |
|---|---|---|
| v | FVector2 | Float tipinde Vector 2. |
Returns: Vector2
equals(FVector2 rhs)
public boolean equals(FVector2 rhs)
İki vektörün eşit olup olmadığını kontrol et
Parameters:
| Parametre | Tür | Açıklama |
|---|---|---|
| rhs | FVector2 |
Returns: boolean - Bütün bileşenler eşitse True.
equals(Object obj)
public boolean equals(Object obj)
İki vektörün eşit olup olmadığını kontrol et
Parameters:
| Parametre | Tür | Açıklama |
|---|---|---|
| obj | java.lang.Object |
Returns: boolean - Girdi bir vektör ve tüm bileşenler eşitse True.
getClass()
public final native Class<?> getClass()
Returns: java.lang.Class
hashCode()
public int hashCode()
Bu örneğin hash kodunu alır
Returns: int - Vektörün hash kodu.
mul(FVector2 a, float b)
public static FVector2 mul(FVector2 a, float b)
* operatör aşırı yükleme
Parameters:
| Parametre | Tür | Açıklama |
|---|---|---|
| a | FVector2 | İlk vektör |
| b | float | İkinci vektör |
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)
== Operatör aşırı yükleme
Parameters:
| Parametre | Tür | Açıklama |
|---|---|---|
| a | FVector2 | İlk vektör |
| b | FVector2 | İkinci vektör |
Returns: boolean - Bütün bileşenler eşitse True.
op_ne(FVector2 a, FVector2 b)
public static boolean op_ne(FVector2 a, FVector2 b)
!= Operator overloading
Parameters:
| Parametre | Tür | Açıklama |
|---|---|---|
| a | FVector2 | İlk vektör |
| b | FVector2 | İkinci vektör |
Returns: boolean - Herhangi bir bileşen farklıysa True.
sub(FVector2 a, FVector2 b)
public static FVector2 sub(FVector2 a, FVector2 b)
- Operatör aşırı yükleme
Parameters:
| Parametre | Tür | Açıklama |
|---|---|---|
| a | FVector2 | İlk vektör |
| b | FVector2 | İkinci vektör |
Returns: FVector2 - The difference of two vectors.
toString()
public String toString()
FVector2 öğesini temsil eden bir dize döndürür
Returns: java.lang.String - Mevcut vektörün dize temsili.
wait()
public final void wait()
wait(long arg0)
public final void wait(long arg0)
Parameters:
| Parametre | Tür | Açıklama |
|---|---|---|
| arg0 | long |
wait(long arg0, int arg1)
public final void wait(long arg0, int arg1)
Parameters:
| Parametre | Tür | Açıklama |
|---|---|---|
| arg0 | long | |
| arg1 | int |