User Tools

Site Tools


api:vec2d

vec2d

Category: Data structure

Functions


add

void vec2d.add(object, x, y)

Name Type Description
object vec2d
x double
y double

dot

double vec2d.dot(object, vector)

Name Type Description
object vec2d
vector vec2d

getLength2

double vec2d.getLength2(object)

Name Type Description
object vec2d

normalize

void vec2d.normalize(object)

Name Type Description
object vec2d

distance2

double vec2d.distance2(object, vector)

Name Type Description
object vec2d
vector vec2d

isZero

boolean vec2d.isZero(object)

Name Type Description
object vec2d

isNearZero

boolean vec2d.isNearZero(object)

Name Type Description
object vec2d

rotate

void vec2d.rotate(object, angle)

Name Type Description
object vec2d
angle double
api/vec2d.txt · Last modified: 2022/11/17 19:04 (external edit)