User Tools

Site Tools


preview:api:vec2f

This is an old revision of the document!


vec2f

Category: Data structure

Functions


add

void vec2f.add(this, x, y)

Name Type Description
this vec2f
x float
y float

dot

float vec2f.dot(this, v)

Name Type Description
this vec2f
v vec2f

getLength2

float vec2f.getLength2(this)

Name Type Description
this vec2f

normalize

void vec2f.normalize(this)

Name Type Description
this vec2f

distance2

float vec2f.distance2(this, v)

Name Type Description
this vec2f
v vec2f

isZero

boolean vec2f.isZero(this)

Name Type Description
this vec2f

isNearZero

boolean vec2f.isNearZero(this)

Name Type Description
this vec2f

rotate

void vec2f.rotate(this, angle)

Name Type Description
this vec2f
angle float
preview/api/vec2f.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