Preparing search index...
The search index is not available
Latite Scripting Documentation - v
Settings
Member Visibility
Protected
Private
Inherited
Theme
OS
Light
Dark
Latite Scripting Documentation
gfx/graphics
Vector2
Class Vector2
Hierarchy
Vector2
Index
Constructors
constructor
Properties
add
distance
To
div
mul
sub
x
y
Constructors
constructor
new
Vector2
(
x
,
y
)
:
Vector2
A point on the screen.
Parameters
x
:
number
The x coordinate.
y
:
number
The y coordinate.
Returns
Vector2
new
Vector2
(
)
:
Vector2
Returns
Vector2
Properties
add
add
:
(
(
vec
)
=>
Vector2
)
Type declaration
(
vec
)
:
Vector2
Parameters
vec
:
Vector2
Returns
Vector2
distance
To
distance
To
:
(
(
pos
)
=>
number
)
Type declaration
(
pos
)
:
number
Parameters
pos
:
Vector2
Returns
number
div
div
:
(
(
vec
)
=>
Vector2
)
Type declaration
(
vec
)
:
Vector2
Parameters
vec
:
Vector2
Returns
Vector2
mul
mul
:
(
(
vec
)
=>
Vector2
)
Type declaration
(
vec
)
:
Vector2
Parameters
vec
:
Vector2
Returns
Vector2
sub
sub
:
(
(
vec
)
=>
Vector2
)
Type declaration
(
vec
)
:
Vector2
Parameters
vec
:
Vector2
Returns
Vector2
x
x
:
number
y
y
:
number
On This Page
constructor
add
distance
To
div
mul
sub
x
y
Latite
Scripting
Documentation
api/
Text
Color
IText
Color
Text
Color
feature/command
Command
Command
Events
feature/hudmodule
Hud
Module
Text
Module
feature/manager/commandmgr
Command
Manager
feature/manager/mmgr
Module
Manager
feature/module
Module
Module
Events
feature/setting
Setting
game
Game
Input
Binding
game
gfx/
Texture
Texture
gfx/graphics
Text
Alignment
Vertical
Alignment
Color
Rect
A class representing a rectangle on the screen.
Vector2
Vector3
Graphics
Backend
Type
graphics
gfx/graphics3
Graphics3D
graphics3D
index
key
Key
Code
latite
Mouse
Button
Cancellable
Event
Click
Event
Client
Events
Key
Event
Latite
Latite
Event
Script
Event
Send
Chat
Event
Text
Input
Event
Title
Event
Message
Type
Title
Type
client
lib/clipboard
include
Clipboard
Filesystem
Get
Data
HTTP
Http
Response
Post
Data
lib/filesystem
include
lib/network
include
molang/
Variable
Molang
Variable
molang/
Variables
Molang
Variables
native/
Native
Module
Native
Module
A class representing a native DLL.
Native
Type
plugin
Permission
IPlugin
plugin
script
Engine
Libraries
IScript
Script
Module
script
client
Message
Adds chat message(s) to the chat.
require
Load a specified library.
sleep
Stops execution for a specified amount of time.
util/buffer
Buffer
util/util
IUtil
util
world/block
Block
world/dimension
Dimension
dimension
world/entity
Looking
At
Entity
A class representing an in-game entity.
Local
Player
A class representing an in-game entity.
Player
A class representing an in-game entity.
world/item
Item
A class representing a Minecraft Item definition (not an item instance)
Item
Stack
An instance of an `Item` (has count, damage, etc.)
world/world
World
world
Generated using
TypeDoc
A point on the screen.