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คําอธิบาย
zeroFVector3อ่านรับค่าเป็นศูนย์.
oneFVector3อ่านรับค่าอันเดียว.
unitXFVector3อ่านรับค่า unit x.
unitYFVector3อ่านรับค่า y ของหน่วย.
unitZFVector3อ่านรับค่า 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 นี้.

ดูเช่นกัน

 ภาษาไทย