FVector3
Inheritance: java.lang.Object
All Implemented Interfaces: com.aspose.threed.Struct, java.io.Serializable
public final class FVector3 implements Struct<FVector3>, Serializable
Vektor float dengan tiga komponen.
Konstruktor
| Konstruktor | Deskripsi |
|---|---|
| FVector3(float x, float y, float z) | Menginisialisasi instance baru dari FVector3. |
| FVector3(Vector3 vec) | Menginisialisasi instance baru dari FVector3. |
| FVector3(Vector4 vec) | Menginisialisasi instance baru dari FVector4. |
| FVector3() |
Bidang
| Bidang | Deskripsi |
|---|---|
| x | Komponen x. |
| y | Komponen y. |
| z | Komponen y. |
Metode
| Metode | Deskripsi |
|---|---|
| add(FVector3 a, FVector3 b) | + Operator overload |
| clone() | |
| copyFrom(FVector3 src) | |
| create(FVector3 v) | Operator konversi eksplisit untuk mengubah FVector3 menjadi Vector3 |
| cross(FVector3 rhs) | Produk silang dari dua vektor. |
| equals(Object obj) | |
| getClass() | |
| getOne() | Vektor skala unit dengan semua komponen bernilai 1 |
| getZero() | Vektor Nol. |
| hashCode() | |
| mul(FVector3 a, float b) | * Operator overloading |
| negative(FVector3 a) | - Operator overload |
| normalize() | Menormalkan instance ini. |
| notify() | |
| notifyAll() | |
| sub(FVector3 a, FVector3 b) | - Operator overload |
| toString() | Mengembalikan string yang merepresentasikan FVector3 |
| wait() | |
| wait(long arg0) | |
| wait(long arg0, int arg1) |
FVector3(float x, float y, float z)
public FVector3(float x, float y, float z)
Menginisialisasi instance baru dari FVector3.
Parameters:
| Parameter | Tipe | Deskripsi |
|---|---|---|
| x | float | Komponen X dari vektor |
| y | float | Komponen Y dari vektor |
| z | float | Komponen Z dari vektor |
FVector3(Vector3 vec)
public FVector3(Vector3 vec)
Menginisialisasi instance baru dari FVector3.
Parameters:
| Parameter | Tipe | Deskripsi |
|---|---|---|
| vec | Vector3 | Vector3 dalam tipe double |
FVector3(Vector4 vec)
public FVector3(Vector4 vec)
Menginisialisasi instance baru dari FVector4.
Parameters:
| Parameter | Tipe | Deskripsi |
|---|---|---|
| vec | Vector4 | Vector4 dalam tipe double |
FVector3()
public FVector3()
x
public float x
Komponen x.
y
public float y
Komponen y.
z
public float z
Komponen y.
add(FVector3 a, FVector3 b)
public static FVector3 add(FVector3 a, FVector3 b)
- Operator overload
Parameters:
| Parameter | Tipe | Deskripsi |
|---|---|---|
| a | FVector3 | Vektor pertama |
| b | FVector3 | Vektor kedua |
Returns: FVector3
clone()
public FVector3 clone()
Kloning instance saat ini
Returns: FVector3
copyFrom(FVector3 src)
public void copyFrom(FVector3 src)
Parameters:
| Parameter | Tipe | Deskripsi |
|---|---|---|
| src | FVector3 |
create(FVector3 v)
public static Vector3 create(FVector3 v)
Operator konversi eksplisit untuk mengubah FVector3 menjadi Vector3
Parameters:
| Parameter | Tipe | Deskripsi |
|---|---|---|
| v | FVector3 | Vector3 dalam tipe float |
Returns: Vector3
cross(FVector3 rhs)
public FVector3 cross(FVector3 rhs)
Produk silang dari dua vektor.
Parameters:
| Parameter | Tipe | Deskripsi |
|---|---|---|
| rhs | FVector3 | Nilai sisi kanan. |
Returns: FVector3 - Cross product of two FVector3s.
equals(Object obj)
public boolean equals(Object obj)
Parameters:
| Parameter | Tipe | Deskripsi |
|---|---|---|
| obj | java.lang.Object |
Returns: boolean
getClass()
public final native Class<?> getClass()
Returns: java.lang.Class
getOne()
public static FVector3 getOne()
Vektor skala unit dengan semua komponen bernilai 1
Returns: FVector3 - The unit scale vector with all components are all 1
getZero()
public static FVector3 getZero()
Vektor Nol.
Returns: FVector3 - The Zero vector.
hashCode()
public int hashCode()
Returns: int
mul(FVector3 a, float b)
public static FVector3 mul(FVector3 a, float b)
* Operator overloading
Parameters:
| Parameter | Tipe | Deskripsi |
|---|---|---|
| a | FVector3 | Vektor pertama |
| b | float | Vektor kedua |
Returns: FVector3 - The product of two vectors
negative(FVector3 a)
public static FVector3 negative(FVector3 a)
- Operator overload
Parameters:
| Parameter | Tipe | Deskripsi |
|---|---|---|
| a | FVector3 | Vektor masukan |
Returns: FVector3 - The negative vector
normalize()
public FVector3 normalize()
Menormalkan instance ini.
Returns: FVector3 - Normalized vector.
notify()
public final native void notify()
notifyAll()
public final native void notifyAll()
sub(FVector3 a, FVector3 b)
public static FVector3 sub(FVector3 a, FVector3 b)
- Operator overload
Parameters:
| Parameter | Tipe | Deskripsi |
|---|---|---|
| a | FVector3 | Vektor pertama |
| b | FVector3 | Vektor kedua |
Returns: FVector3 - The difference of two vectors
toString()
public String toString()
Mengembalikan string yang merepresentasikan FVector3
Returns: java.lang.String - Representasi string dari vektor ini.
wait()
public final void wait()
wait(long arg0)
public final void wait(long arg0)
Parameters:
| Parameter | Tipe | Deskripsi |
|---|---|---|
| arg0 | long |
wait(long arg0, int arg1)
public final void wait(long arg0, int arg1)
Parameters:
| Parameter | Tipe | Deskripsi |
|---|---|---|
| arg0 | long | |
| arg1 | int |