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

NameTypeAccessDescription
zeroVector3ReadGets the zero.
oneVector3ReadGets the one.
unitXVector3ReadGets the unit x.
unitYVector3ReadGets the unit y.
unitZVector3ReadGets the unit z.
lengthdoubleReadGets the length.
length2doubleReadGets the length2.

Methods

SignatureDescription
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()Vector3Returns the zero.
getOne()Vector3Returns the one.
getUnitX()Vector3Returns the unit x.
getUnitY()Vector3Returns the unit y.
getUnitZ()Vector3Returns the unit z.
set(x: double, y: double, z: double)Calls set(x, y, z) on this Vector3 instance.
getLength()doubleReturns the length.
getLength2()doubleReturns the length2.
normalize()Vector3Calls normalize on this Vector3 instance.
dot(v: Vector3)doubleCalls dot(v) on this Vector3 instance.
cross(v: Vector3)Vector3Calls cross(v) on this Vector3 instance.
add(a: Vector3, b: Vector3)Vector3Calls add(a, b) on this Vector3 instance.
sub(a: Vector3, b: Vector3)Vector3Calls sub(a, b) on this Vector3 instance.
mul(a: Vector3, b: Vector3)Vector3Calls mul(a, b) on this Vector3 instance.
mul(v: Vector3, s: double)Vector3Calls mul(v, s) on this Vector3 instance.
mul(s: double, v: Vector3)Vector3Calls mul(s, v) on this Vector3 instance.
div(v: Vector3, s: double)Vector3Calls div(v, s) on this Vector3 instance.
div(a: Vector3, b: Vector3)Vector3Calls div(a, b) on this Vector3 instance.
negative(v: Vector3)Vector3Calls negative(v) on this Vector3 instance.
op_eq(a: Vector3, b: Vector3)booleanCalls op_eq(a, b) on this Vector3 instance.
op_ne(a: Vector3, b: Vector3)booleanCalls op_ne(a, b) on this Vector3 instance.
get(index: int)doubleCalls get(index) on this Vector3 instance.
set(index: int, value: double)Calls set(index, value) on this Vector3 instance.
angleBetween(a: Vector3, b: Vector3)doubleCalls angleBetween(a, b) on this Vector3 instance.
angleBetween(v: Vector3)doubleCalls angleBetween(v) on this Vector3 instance.
create(v: Vector3)FVector3Calls create(v) on this Vector3 instance.
equals(obj: Object)booleanCalls equals(obj) on this Vector3 instance.
hashCode()intCalls hashCode on this Vector3 instance.
toString()StringCalls toString on this Vector3 instance.
clone()Vector3Calls clone on this Vector3 instance.
copyFrom(src: Vector3)Calls copyFrom(src) on this Vector3 instance.
compareTo(other: Vector3)intCalls compareTo(other) on this Vector3 instance.
sin()Vector3Calls sin on this Vector3 instance.
cos()Vector3Calls cos on this Vector3 instance.
parse(s: String)Vector3Calls parse(s) on this Vector3 instance.

See Also

 English