- abs
Vector2 abs()
Undocumented in source. Be warned that the author may not have intended to support it.
- angle
real_t angle()
Undocumented in source. Be warned that the author may not have intended to support it.
- angleTo
real_t angleTo(Vector2 p_vector2)
Undocumented in source. Be warned that the author may not have intended to support it.
- angleToPoint
real_t angleToPoint(Vector2 p_vector2)
Undocumented in source. Be warned that the author may not have intended to support it.
- aspect
real_t aspect()
Undocumented in source. Be warned that the author may not have intended to support it.
- clamped
Vector2 clamped(real_t p_len)
Undocumented in source. Be warned that the author may not have intended to support it.
- cross
real_t cross(Vector2 p_other)
Undocumented in source. Be warned that the author may not have intended to support it.
- cross
Vector2 cross(real_t p_other)
Undocumented in source. Be warned that the author may not have intended to support it.
- cubicInterpolate
Vector2 cubicInterpolate(Vector2 p_b, Vector2 p_pre_a, Vector2 p_post_b, real_t p_t)
Undocumented in source. Be warned that the author may not have intended to support it.
- distanceSquaredTo
real_t distanceSquaredTo(Vector2 p_vector2)
Undocumented in source. Be warned that the author may not have intended to support it.
- distanceTo
real_t distanceTo(Vector2 p_vector2)
Undocumented in source. Be warned that the author may not have intended to support it.
- dot
real_t dot(Vector2 p_other)
Undocumented in source. Be warned that the author may not have intended to support it.
- floor
Vector2 floor()
Undocumented in source. Be warned that the author may not have intended to support it.
- length
real_t length()
Undocumented in source. Be warned that the author may not have intended to support it.
- lengthSquared
real_t lengthSquared()
Undocumented in source. Be warned that the author may not have intended to support it.
- linearInterpolate
Vector2 linearInterpolate(Vector2 p_b, real_t p_t)
Undocumented in source. Be warned that the author may not have intended to support it.
- normalize
void normalize()
Undocumented in source. Be warned that the author may not have intended to support it.
- normalized
Vector2 normalized()
Undocumented in source. Be warned that the author may not have intended to support it.
- opAssign
void opAssign(Vector2 b)
Undocumented in source. Be warned that the author may not have intended to support it.
- opBinary
Vector2 opBinary(Vector2 other)
Undocumented in source. Be warned that the author may not have intended to support it.
- opBinary
Vector2 opBinary(real_t scalar)
Undocumented in source. Be warned that the author may not have intended to support it.
- opBinaryRight
Vector2 opBinaryRight(real_t scalar)
Undocumented in source. Be warned that the author may not have intended to support it.
- opCmp
int opCmp(Vector2 other)
Undocumented in source. Be warned that the author may not have intended to support it.
- opDispatch
auto opDispatch(float[nArgCount] nArgs)
Swizzle the vector with x, y, or n. Pass floats as args for any n's; if
there are more n's than args, the last arg is used for the rest. If no args
are passed at all, 0.0 is used for each n.
- opIndex
real_t opIndex(int axis)
Undocumented in source. Be warned that the author may not have intended to support it.
- opIndex
const(real_t) opIndex(int axis)
Undocumented in source. Be warned that the author may not have intended to support it.
- opOpAssign
void opOpAssign(Vector2 other)
Undocumented in source. Be warned that the author may not have intended to support it.
- opOpAssign
void opOpAssign(real_t scalar)
Undocumented in source. Be warned that the author may not have intended to support it.
- opUnary
Vector2 opUnary()
Undocumented in source. Be warned that the author may not have intended to support it.
- planeProject
Vector2 planeProject(real_t p_d, Vector2 p_vec)
Undocumented in source. Be warned that the author may not have intended to support it.
- project
Vector2 project(Vector2 p_vec)
Undocumented in source. Be warned that the author may not have intended to support it.
- reflect
Vector2 reflect(Vector2 p_vec)
Undocumented in source. Be warned that the author may not have intended to support it.
- rotated
Vector2 rotated(real_t p_by)
Undocumented in source. Be warned that the author may not have intended to support it.
- setRotation
void setRotation(real_t p_radians)
Undocumented in source. Be warned that the author may not have intended to support it.
- slide
Vector2 slide(Vector2 p_vec)
Undocumented in source. Be warned that the author may not have intended to support it.
- snapped
Vector2 snapped(Vector2 p_by)
Undocumented in source. Be warned that the author may not have intended to support it.
- tangent
Vector2 tangent()
Undocumented in source. Be warned that the author may not have intended to support it.
2-element structure that can be used to represent positions in 2d-space, or any other pair of numeric values.