preview:api:vec2d
This is an old revision of the document!
Table of Contents
vec2d
Category: Data structure
Functions
add
void vec2d.add(object, x, y)
Name | Type | Description |
---|---|---|
object | vec2d | |
x | double | |
y | double |
dot
getLength2
double vec2d.getLength2(object)
Name | Type | Description |
---|---|---|
object | vec2d |
normalize
void vec2d.normalize(object)
Name | Type | Description |
---|---|---|
object | vec2d |
distance2
isZero
boolean vec2d.isZero(object)
Name | Type | Description |
---|---|---|
object | vec2d |
isNearZero
boolean vec2d.isNearZero(object)
Name | Type | Description |
---|---|---|
object | vec2d |
rotate
void vec2d.rotate(object, angle)
Name | Type | Description |
---|---|---|
object | vec2d | |
angle | double |
preview/api/vec2d.1590165867.txt.gz · Last modified: 2020/05/22 12:44 by maxime