Vector2

Example

Vector2 je vektor sa dva komponenta u jednostrukoj preciznosti koji se primarno koristi za UV teksturne koordinate u slojevima elementa vrha.

Example

NameTypeAccessDescription
UdoubleRead/WriteGets or sets the u.
VdoubleRead/WriteGets or sets the v.
LengthdoubleReadGets the length.
SignatureDescription
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

Vidi takođe

 Српски