User Tools

Site Tools


api:vec2f

vec2f

Category: Data structure

Functions


add

void vec2f.add(object, x, y)

Name Type Description
object vec2f
x float
y float

dot

float vec2f.dot(object, v)

Name Type Description
object vec2f
v vec2f

getLength2

float vec2f.getLength2(object)

Name Type Description
object vec2f

normalize

void vec2f.normalize(object)

Name Type Description
object vec2f

distance2

float vec2f.distance2(object, v)

Name Type Description
object vec2f
v vec2f

isZero

boolean vec2f.isZero(object)

Name Type Description
object vec2f

isNearZero

boolean vec2f.isNearZero(object)

Name Type Description
object vec2f

rotate

void vec2f.rotate(object, angle)

Name Type Description
object vec2f
angle float
api/vec2f.txt · Last modified: 2020/10/22 10:16 (external edit)