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

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

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