A B C D E F G H I J K L M N O P Q R S T U V W X Y Z |
scale(s:Number) — method, class shared.math.Vec2Const |
| Scales by the scalar "s" (returns a new Vec2) |
scaleSelf(s:Number) — method, class shared.math.Vec2 |
| Scales by the scalar "s" |
set(p:any) — method, class shared.math.Vec2 |
| Copies x and y components from "p" (where "p" is any object exposing x, y properties) |
setXY(x:Number, y:Number) — method, class shared.math.Vec2 |
| Copies x and y components from passed arguments |
shared.math — package |
| |
slerp(vec:shared.math:Vec2Const, t:Number) — method, class shared.math.Vec2Const |
|
Spherical linear interpolation from this vector to "to" vector (returns a new Vec2) - not thoroughly tested
Note: this vector and "vec" MUST be orthogonal for it to work properly
|
spinorBetween(vec:shared.math:Vec2Const) — method, class shared.math.Vec2Const |
| Gets spinor between this vector and "vec" (returns a new Vec2) |
stringDecimals — Static Property, class shared.math.Vec2 |
| Number of decimal places to show when using toString() (set this to -1 for default Number -> String conversion) |
sub(pos:shared.math:Vec2Const) — method, class shared.math.Vec2Const |
| Subtracts "pos" vector (returns a new Vec2) |
subSelf(pos:shared.math:Vec2Const) — method, class shared.math.Vec2 |
| Subtracts "pos" vector |
subXY(x:Number, y:Number) — method, class shared.math.Vec2Const |
| Subtracts ("x", "y") (returns a new Vec2) |
subXYSelf(x:Number, y:Number) — method, class shared.math.Vec2 |
| Subtracts ("x", "y") |
swap(a:shared.math:Vec2, b:shared.math:Vec2) — Static Method , class shared.math.Vec2 |
| Swaps vectors |
|
A B C D E F G H I J K L M N O P Q R S T U V W X Y Z |