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

crossZ

float vec2f.crossZ(object, vector)

Name Type Description
object vec2f
vector vec2f

cross

Vector3 vec2f.cross(object, vector)

Name Type Description
object vec2f
vector vec2f

getLength2

float vec2f.getLength2(object)

Name Type Description
object vec2f

set

void vec2f.set(object, x, y)

Name Type Description
object vec2f
x float
y float

normalize

void vec2f.normalize(object)

Name Type Description
object vec2f

normalized

vec2f vec2f.normalized(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

rotated

vec2f vec2f.rotated(object, angle)

Name Type Description
object vec2f
angle float
api/vec2f.txt · Last modified: 2024/02/06 13:54 by 127.0.0.1

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki