User Tools

Site Tools


api:vec2i

vec2i

Category: Data structure

Functions


add

void vec2i.add(object, x, y)

Name Type Description
object vec2i
x integer
y integer

dot

integer vec2i.dot(object, v)

Name Type Description
object vec2i
v vec2i

getLength2

integer vec2i.getLength2(object)

Name Type Description
object vec2i

normalize

void vec2i.normalize(object)

Name Type Description
object vec2i

distance2

integer vec2i.distance2(object, v)

Name Type Description
object vec2i
v vec2i

isZero

boolean vec2i.isZero(object)

Name Type Description
object vec2i

isNearZero

boolean vec2i.isNearZero(object)

Name Type Description
object vec2i

rotate

void vec2i.rotate(object, angle)

Name Type Description
object vec2i
angle integer
api/vec2i.txt · Last modified: 2022/01/20 11:44 (external edit)