🔀Vertex

Vertex metatable

Fields

Name
Type
Description

pos

screen pos

uv

texture uv

Vertex(pos: Vec2, uv: Vec2): Vertex

Name
Type
Description

Create a new Vertex.


Vertex(posx: number, posy: number, uvx: number, uvy: number): Vertex

Name
Type
Description

posx

number

posy

number

uvx

number

uvy

number

Create a new Vertex(0,0).


:__tostring(): string


:__add(other: Vertex|number): Vertex

Overload for operator +

Name
Type
Description

other

Vertex|number


:__sub(other: Vertex|number): Vertex

Overload for operator -

Name
Type
Description

other

Vertex|number

Last updated