Vector2

Γενική Επισκόπηση

Vector2 είναι μια τάξη στο Aspose.3d για το Java. Κληρονόμοι από: Serializable.

Vector2.Vector2 creates a vector with both components set to zero.

Μέθοδοι

NameTypeAccessDescription
udoubleReadGets the u.
vdoubleReadGets the v.
lengthdoubleReadGets the length.
SignatureDescription
Vector2()Initializes the vector with the specified x and y values
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.
 Ελληνικά