FVector3

Overview

FVector3 is a class in Aspose.3D FOSS for Java. Inherits from: Struct<FVector3>, Serializable, Comparable<FVector3>.

FVector3.FVector3 creates a vector with all components set to zero.

This class provides 29 methods for working with FVector3 objects in Java programs. Available methods include: FVector3, add, clone, compareTo, copyFrom, create, cross, div, equals, get, getOne, getUnitX, and 11 additional methods. All public members are accessible to any Java application after installing the Aspose.3D FOSS for Java package. Properties: one, unitX, unitY, unitZ, zero.

Properties

NameTypeAccessDescription
zeroFVector3ReadGets the zero.
oneFVector3ReadGets the one.
unitXFVector3ReadGets the unit x.
unitYFVector3ReadGets the unit y.
unitZFVector3ReadGets the unit z.

Methods

SignatureDescription
FVector3()Initializes a vector with the specified x, y, and z float values
FVector3(x: float, y: float, z: float)Calls FVector3(x, y, z) on this FVector3 instance.
FVector3(xy: FVector2, z: float)Calls FVector3(xy, z) on this FVector3 instance.
FVector3(vec: Vector3)Calls FVector3(vec) on this FVector3 instance.
FVector3(vec: Vector4)Calls FVector3(vec) on this FVector3 instance.
FVector3(vec: FVector4)Calls FVector3(vec) on this FVector3 instance.
getZero()FVector3Returns the zero.
getOne()FVector3Returns the one.
getUnitX()FVector3Returns the unit x.
getUnitY()FVector3Returns the unit y.
getUnitZ()FVector3Returns the unit z.
create(v: FVector3)Vector3Calls create(v) on this FVector3 instance.
parse(input: String)FVector3Calls parse(input) on this FVector3 instance.
compareTo(other: FVector3)intCalls compareTo(other) on this FVector3 instance.
get(component: int)floatCalls get(component) on this FVector3 instance.
set(component: int, value: float)Calls set(component, value) on this FVector3 instance.
normalize()FVector3Calls normalize on this FVector3 instance.
cross(other: FVector3)FVector3Calls cross(other) on this FVector3 instance.
add(a: FVector3, b: FVector3)FVector3Calls add(a, b) on this FVector3 instance.
sub(a: FVector3, b: FVector3)FVector3Calls sub(a, b) on this FVector3 instance.
mul(a: FVector3, b: float)FVector3Calls mul(a, b) on this FVector3 instance.
mul(b: float, a: FVector3)FVector3Calls mul(b, a) on this FVector3 instance.
div(a: FVector3, b: float)FVector3Calls div(a, b) on this FVector3 instance.
negative(a: FVector3)FVector3Calls negative(a) on this FVector3 instance.
equals(obj: Object)booleanCalls equals(obj) on this FVector3 instance.
hashCode()intCalls hashCode on this FVector3 instance.
toString()StringCalls toString on this FVector3 instance.
clone()FVector3Calls clone on this FVector3 instance.
copyFrom(src: FVector3)Calls copyFrom(src) on this FVector3 instance.

See Also

 English