FVector3
ภาพรวม
FVector3 เป็นคลาสใน Aspose.3D FOSS สําหรับ Java. ทายาทจาก: Struct<FVector3>, Serializable, Comparable<FVector3>.
FVector3.FVector3 สร้างเวกเตอร์ที่มีส่วนประกอบทั้งหมดตั้งเป็นศูนย์.
หมวดนี้ให้ 29 วิธีในการทํางานกับวัตถุ FVector3 ในโปรแกรม Java. วิธีการที่ใช้ได้แก่: FVector3, add, clone, compareTo, copyFrom, create, cross, div, equals, get, getOne, getUnitX,และ 11 วิธีเพิ่มเติม. สมาชิกสาธารณะทุกคนสามารถเข้าถึงการใช้งาน Java ใดก็ได้หลังจากติดตั้งแพ็คเกจ FOSS for Java. คุณสมบัติ: one, unitX, unitY, unitZ, zero.
คุณสมบัติ
| ชื่อ | ประเภท | Access | คําอธิบาย |
|---|---|---|---|
zero | FVector3 | อ่าน | รับค่าเป็นศูนย์. |
one | FVector3 | อ่าน | รับค่าอันเดียว. |
unitX | FVector3 | อ่าน | รับค่า unit x. |
unitY | FVector3 | อ่าน | รับค่า y ของหน่วย. |
unitZ | FVector3 | อ่าน | รับค่า unit z. |
วิธีการ
| Signature | คําอธิบาย |
|---|---|
FVector3() | เริ่มต้นเวกเตอร์ที่มีค่า x, y และ z ที่ระบุไว้ |
FVector3(x: float, y: float, z: float) | เรียก FVector3 ((x, y, z) ในตัวอย่างของ F Vector 3 นี้. |
FVector3(xy: FVector2, z: float) | เรียก FVector3 ((xy, z) ในตัวอย่างของ F Vector 3 นี้. |
FVector3(vec: Vector3) | เรียก FVector3 ((vec) ในตัวอย่างของ F Vector 3 นี้. |
FVector3(vec: Vector4) | เรียก FVector3 ((vec) ในตัวอย่างของ F Vector 3 นี้. |
FVector3(vec: FVector4) | เรียก FVector3 ((vec) ในตัวอย่างของ F Vector 3 นี้. |
getZero() → FVector3 | กลับ 0. |
getOne() → FVector3 | กลับคืน 1 ตัว. |
getUnitX() → FVector3 | กลับหน่วย x. |
getUnitY() → FVector3 | กลับหน่วย y. |
getUnitZ() → FVector3 | กลับหน่วย z. |
create(v: FVector3) → Vector3 | เรียก create(v) ในตัวอย่าง FVector3 นี้. |
parse(input: String) → FVector3 | เรียก parse ((input) ในตัวอย่าง FVector3 นี้. |
compareTo(other: FVector3) → int | เรียก compareTo(other) ในตัวอย่าง FVector3 นี้. |
get(component: int) → float | เรียก get ((ส่วนประกอบ) ในตัวอย่าง FVector3 นี้. |
set(component: int, value: float) | การเรียก set ((ส่วนประกอบ, ค่า) ในตัวอย่าง FVector3 นี้. |
normalize() → FVector3 | การโทรเรียกปกติในตัวอย่าง FVector3 นี้. |
cross(other: FVector3) → FVector3 | เรียกข้าม ((อื่น ๆ) ในตัวอย่าง FVector3 นี้. |
add(a: FVector3, b: FVector3) → FVector3 | เรียก add ((a, b) ในตัวอย่าง FVector3 นี้. |
sub(a: FVector3, b: FVector3) → FVector3 | เรียก sub ((a, b) ในตัวอย่าง FVector3 นี้. |
mul(a: FVector3, b: float) → FVector3 | เรียก mul ((a, b) ในตัวอย่าง FVector3 นี้. |
mul(b: float, a: FVector3) → FVector3 | เรียก mul(b, a) ในตัวอย่าง FVector3 นี้. |
div(a: FVector3, b: float) → FVector3 | เรียก div ((a, b) ในตัวอย่าง FVector3 นี้. |
negative(a: FVector3) → FVector3 | เรียกลบ (a) ในตัวอย่าง FVector3 นี้. |
equals(obj: Object) → boolean | เรียกเท่ากับ ((obj) ในตัวอย่าง FVector3 นี้. |
hashCode() → int | เรียก hashCode ในตัวอย่าง FVector3 นี้. |
toString() → String | เรียก toString ในตัวอย่าง FVector3 นี้. |
clone() → FVector3 | เรียกคลอนในตัวอย่าง FVector3 นี้. |
copyFrom(src: FVector3) | เรียก copyFrom ((src) ในตัวอย่าง FVector3 นี้. |