Vector3
Overview
Vector3 is a class in Aspose.3D FOSS for Java.
Inherits from: Struct<Vector3>, Serializable, Comparable<Vector3>.
This class provides 40 methods for working with Vector3 objects in Java programs.
Available methods include: Vector3, add, angleBetween, clone, compareTo, copyFrom, cos, create, cross, div, dot, equals, and 19 additional methods.
All public members are accessible to any Java application after installing the Aspose.3D FOSS for Java package.
Properties: length, length2, one, unitX, unitY, unitZ, and 1 more.
Properties
| Name | Type | Access | Description |
|---|---|---|---|
zero | Vector3 | Read | Gets the zero. |
one | Vector3 | Read | Gets the one. |
unitX | Vector3 | Read | Gets the unit x. |
unitY | Vector3 | Read | Gets the unit y. |
unitZ | Vector3 | Read | Gets the unit z. |
length | double | Read | Gets the length. |
length2 | double | Read | Gets the length2. |
Methods
| Signature | Description |
|---|---|
Vector3() | Calls Vector3 on this Vector3 instance. |
Vector3(x: double, y: double, z: double) | Calls Vector3(x, y, z) on this Vector3 instance. |
Vector3(val: double) | Calls Vector3(val) on this Vector3 instance. |
Vector3(fv3: FVector3) | Calls Vector3(fv3) on this Vector3 instance. |
Vector3(v4: Vector4) | Calls Vector3(v4) on this Vector3 instance. |
getZero() → Vector3 | Returns the zero. |
getOne() → Vector3 | Returns the one. |
getUnitX() → Vector3 | Returns the unit x. |
getUnitY() → Vector3 | Returns the unit y. |
getUnitZ() → Vector3 | Returns the unit z. |
set(x: double, y: double, z: double) | Calls set(x, y, z) on this Vector3 instance. |
getLength() → double | Returns the length. |
getLength2() → double | Returns the length2. |
normalize() → Vector3 | Calls normalize on this Vector3 instance. |
dot(v: Vector3) → double | Calls dot(v) on this Vector3 instance. |
cross(v: Vector3) → Vector3 | Calls cross(v) on this Vector3 instance. |
add(a: Vector3, b: Vector3) → Vector3 | Calls add(a, b) on this Vector3 instance. |
sub(a: Vector3, b: Vector3) → Vector3 | Calls sub(a, b) on this Vector3 instance. |
mul(a: Vector3, b: Vector3) → Vector3 | Calls mul(a, b) on this Vector3 instance. |
mul(v: Vector3, s: double) → Vector3 | Calls mul(v, s) on this Vector3 instance. |
mul(s: double, v: Vector3) → Vector3 | Calls mul(s, v) on this Vector3 instance. |
div(v: Vector3, s: double) → Vector3 | Calls div(v, s) on this Vector3 instance. |
div(a: Vector3, b: Vector3) → Vector3 | Calls div(a, b) on this Vector3 instance. |
negative(v: Vector3) → Vector3 | Calls negative(v) on this Vector3 instance. |
op_eq(a: Vector3, b: Vector3) → boolean | Calls op_eq(a, b) on this Vector3 instance. |
op_ne(a: Vector3, b: Vector3) → boolean | Calls op_ne(a, b) on this Vector3 instance. |
get(index: int) → double | Calls get(index) on this Vector3 instance. |
set(index: int, value: double) | Calls set(index, value) on this Vector3 instance. |
angleBetween(a: Vector3, b: Vector3) → double | Calls angleBetween(a, b) on this Vector3 instance. |
angleBetween(v: Vector3) → double | Calls angleBetween(v) on this Vector3 instance. |
create(v: Vector3) → FVector3 | Calls create(v) on this Vector3 instance. |
equals(obj: Object) → boolean | Calls equals(obj) on this Vector3 instance. |
hashCode() → int | Calls hashCode on this Vector3 instance. |
toString() → String | Calls toString on this Vector3 instance. |
clone() → Vector3 | Calls clone on this Vector3 instance. |
copyFrom(src: Vector3) | Calls copyFrom(src) on this Vector3 instance. |
compareTo(other: Vector3) → int | Calls compareTo(other) on this Vector3 instance. |
sin() → Vector3 | Calls sin on this Vector3 instance. |
cos() → Vector3 | Calls cos on this Vector3 instance. |
parse(s: String) → Vector3 | Calls parse(s) on this Vector3 instance. |