Vector2

docs.vector2
Meta name Allowed other parameters Meta execution method
__le
  • Vector2
x <= y
__lt
  • Vector2
x < y
__len
#x
__unm
-x
__eq
  • Vector2
x == y
__mod
  • Number
  • Vector2
x % y
__div
  • Number
  • Vector2
x / y
__mul
  • Number
  • Vector2
  • Matrix2
x * y
__add
  • Vector2
x + y
__sub
  • Vector2
x - y

Vector2.length

docs.vector2.length
overload 1:
Vector2:length()
Method Property Fluent Description Representation
Return Value a Number

Vector2.dot

docs.vector2.dot
overload 1:
Vector2:dot(vec2)
Method Property Fluent Description Representation
vec2 accepts a Vector2
Return Value a Number

Vector2.set

docs.vector2.set
overload 1:
Vector2:set(x, y)
Method Property Fluent Description Representation
x accepts a Number
y accepts a Number
Return Value nil

Vector2.copy

docs.vector2.copy
overload 1:
Vector2:copy()
Method Property Fluent Description Representation
Return Value a Vector2

Vector2.normalize

docs.vector2.normalize
overload 1:
Vector2:normalize()
Method Property Fluent Description Representation
Return Value nil

Vector2.reset

docs.vector2.reset
overload 1:
Vector2:reset()
Method Property Fluent Description Representation
Return Value nil

Vector2.normalized

docs.vector2.normalized
overload 1:
Vector2:normalized()
Method Property Fluent Description Representation
Return Value a Vector2

Vector2.lengthSquared

docs.vector2.lengthsquared
overload 1:
Vector2:lengthSquared()
Method Property Fluent Description Representation
Return Value a Number

Vector2.toRad

docs.vector2.torad
overload 1:
Vector2:toRad()
Method Property Fluent Description Representation
Return Value a Vector2

Vector2.clampLength

docs.vector2.clamplength
overload 1:
Vector2:clampLength(minLength, maxLength)
Method Property Fluent Description Representation
minLength accepts a Number
maxLength accepts a Number
Return Value nil

Vector2.toDeg

docs.vector2.todeg
overload 1:
Vector2:toDeg()
Method Property Fluent Description Representation
Return Value a Vector2

Vector2.clamped

docs.vector2.clamped
overload 1:
Vector2:clamped(minLength, maxLength)
Method Property Fluent Description Representation
minLength accepts a Number
maxLength accepts a Number
Return Value a Vector2

Vector2.x

docs.vector2.x
field signature:
x
Method Property Fluent Description Representation
Field Type a Number

Vector2.y

docs.vector2.y
field signature:
y
Method Property Fluent Description Representation
Field Type a Number
a a