User Tools

Site Tools


preview:api:vec2d

This is an old revision of the document!


vec2d

Category: Data structure

Functions


add

void vec2d.add(this, x, y)

Name Type Description
this vec2d
x double
y double

dot

double vec2d.dot(this, v)

Name Type Description
this vec2d
v vec2d

getLength2

double vec2d.getLength2(this)

Name Type Description
this vec2d

normalize

void vec2d.normalize(this)

Name Type Description
this vec2d

distance2

double vec2d.distance2(this, v)

Name Type Description
this vec2d
v vec2d

isZero

boolean vec2d.isZero(this)

Name Type Description
this vec2d

isNearZero

boolean vec2d.isNearZero(this)

Name Type Description
this vec2d

rotate

void vec2d.rotate(this, angle)

Name Type Description
this vec2d
angle double
preview/api/vec2d.1590164021.txt.gz · Last modified: 2020/05/22 12:13 by 127.0.0.1

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki