Vector2
Přehled
Vector2 je struktura v Aspose.3D FOSS pro .NET.
Struktura vektoru 2
Vlastnosti
| Name | Type | Access | Description |
|---|---|---|---|
U | double | Read/Write | Gets or sets the u. |
V | double | Read/Write | Gets or sets the v. |
Length | double | Read | Gets the length. |
Metody
| Signature | Description |
|---|---|
Vector2(s: double) | Creates a 2‑D vector from a Vector3, using its X and Y components |
Vector2(x: double, y: double) | |
Vector2(s: Vector3) | |
Vector2(vec: FVector2) | |
Dot(rhs: Vector2) | Returns the dot product of this vector and the right‑hand side vector |
Equals(rhs: Vector2) | Determines whether the supplied object is a Vector2 with equal components |
Equals(obj: object?) | |
GetHashCode() | Returns a hash code derived from the vector’s components |
ToString() | Returns a textual representation of the vector’s components |
Cross(v: Vector2) | Returns the scalar (z‑axis) cross product of two 2‑D vectors |
Normalize() | Scales the vector to have a length of one |
CompareTo(other: Vector2) | Compares this vector with another, typically by length or component order |