|
| function | __add (local other) |
| |
| function | __div (local other) |
| |
| function | __eq (local other) |
| |
| function | __mul (local other) |
| |
| function | __sub (local other) |
| |
| function | __tostring () |
| |
| function | __unm () |
| |
| function | add (local other) |
| |
| function | angle (local other) |
| |
| function | clamp (local min, local max) |
| |
| function | clone () |
| |
| function | cross (local other) |
| |
| function | distance (local other) |
| |
| function | distanceSquared (local other) |
| |
| function | dot (local other) |
| |
| function | fuzzyEquals (local other, local var) |
| |
| function | getClamped (local min, local max) |
| |
| function | getMidpoint (local other) |
| |
| function | getNormalized () |
| |
| function | getPerp () |
| |
| function | getProjection (local other) |
| |
| function | getRotateAround (local point, local angle) |
| |
| function | getRotated (local other) |
| |
| function | getRPerp () |
| |
| function | getScaled (local scalar) |
| |
| function | isFinite () |
| |
| function | isOne () |
| |
| function | isZero () |
| |
| function | length () |
| |
| function | lengthSquared () |
| |
| function | lerp (local target, local alpha) |
| |
| function | negate () |
| |
| function | normalize () |
| |
| static function | one () |
| |
| function | rotate (local point, local angle) |
| |
| function | scale (local scalar) |
| |
| function | set (local xx, local yy, local zz) |
| |
| function | setZero () |
| |
| function | smooth (local target, local elapsedTime, local responseTime) |
| |
| function | subtract (local other) |
| |
| static function | zero () |
| |
◆ __add()
◆ __div()
◆ __eq()
◆ __mul()
◆ __sub()
◆ __tostring()
◆ __unm()
◆ add()
◆ angle()
◆ clamp()
◆ clone()
◆ cross()
◆ distance()
◆ distanceSquared()
◆ dot()
◆ fuzzyEquals()
◆ getClamped()
◆ getMidpoint()
Calculates midpoint between two points
◆ getNormalized()
◆ getPerp()
Calculates perpendicular of v, rotated 90 degrees counter-clockwise – cross(v, perp(v)) >= 0
◆ getProjection()
Calculates the projection of this over other.
- Returns
- math.vec2
◆ getRotateAround()
◆ getRotated()
Complex multiplication of two points ("rotates" two points), or rotate a point by angle.
- Parameters
-
- Returns
- math.vec2
◆ getRPerp()
Calculates perpendicular of v, rotated 90 degrees clockwise – cross(v, rperp(v)) <= 0
◆ getScaled()
◆ isFinite()
◆ isOne()
◆ isZero()
◆ length()
◆ lengthSquared()
◆ lerp()
◆ negate()
◆ normalize()
◆ one()
◆ rotate()
Rotates this vector by angle (specified in radians) around the given point.
◆ scale()
◆ set()
◆ setZero()
◆ smooth()
◆ subtract()
◆ zero()
◆ __index
The documentation for this class was generated from the following file: