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, vector)

Name Type Description
object vec2i
vector 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, vector)

Name Type Description
object vec2i
vector 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: 2023/01/12 15:10 (external edit)