Vector2

Overview

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

This class declares 24 methods for Vector2 objects in Java programs. Available methods include: Vector2, add, compareTo, cross, div, dot, equals, getLength, getU, getV, hashCode, mul, and 7 additional methods. Public members are accessible to any Java application after installing the Aspose.3D FOSS for Java package. Properties: length, u, v.

Properties

NameTypeAccessDescription
udoubleReadGets the u.
vdoubleReadGets the v.
lengthdoubleReadGets the length.

Methods

SignatureDescription
Vector2()Calls Vector2 on this Vector2 instance.
Vector2(x: double, y: double)Calls Vector2(x, y) on this Vector2 instance.
Vector2(vec: Vector3)Calls Vector2(vec) on this Vector2 instance.
Vector2(vec: FVector2)Calls Vector2(vec) on this Vector2 instance.
getU() → doubleReturns the u.
setU(value: double)Sets the u value.
getV() → doubleReturns the v.
setV(value: double)Sets the v value.
getLength() → doubleReturns the length.
dot(rhs: Vector2) → doubleCalls dot(rhs) on this Vector2 instance.
equals(rhs: Vector2) → booleanCalls equals(rhs) on this Vector2 instance.
equals(obj: Object) → booleanCalls equals(obj) on this Vector2 instance.
hashCode() → intCalls hashCode on this Vector2 instance.
toString() → StringCalls toString on this Vector2 instance.
cross(v: Vector2) → doubleCalls cross(v) on this Vector2 instance.
normalize() → Vector2Calls normalize on this Vector2 instance.
compareTo(other: Vector2) → intCalls compareTo(other) on this Vector2 instance.
add(lhs: Vector2, rhs: Vector2) → Vector2Calls add(lhs, rhs) on this Vector2 instance.
sub(lhs: Vector2, rhs: Vector2) → Vector2Calls sub(lhs, rhs) on this Vector2 instance.
div(lhs: Vector2, rhs: double) → Vector2Calls div(lhs, rhs) on this Vector2 instance.
mul(lhs: Vector2, rhs: double) → Vector2Calls mul(lhs, rhs) on this Vector2 instance.
mul(lhs: double, rhs: Vector2) → Vector2Calls mul(lhs, rhs) on this Vector2 instance.
op_eq(lhs: Vector2, rhs: Vector2) → booleanCalls op_eq(lhs, rhs) on this Vector2 instance.
op_ne(lhs: Vector2, rhs: Vector2) → booleanCalls op_ne(lhs, rhs) on this Vector2 instance.

See Also

 English