👑
Impulse documentation
  • Getting started
  • Examples
    • Console
    • Window
  • enviornment
    • Globals
      • Lua globals
      • Impulse globals
    • Libraries
      • Win32
      • Direct X
      • Renderer
      • Input
      • Crypt
      • Memory
      • File system
      • Debug
  • Enumerations
    • Key codes
    • Cursor style
    • Primitive topology
  • Data types
    • Vector2
    • Vector3
    • Vertex
    • Color
    • Draw command
Powered by GitBook

Impulse links

  • GitHub
  • Project
  • Discord

© 2025 Impulse

On this page
  1. Data types

Vector2

Constructor

vector2.new(x: number, y: number) -> vector2
Properties
Description

x

Defines the horizontal position of a point in 2D space, determining movement left or right.

y

Defines the vertical position of a point in 2D space, determining movement up or down.

PreviousData typesNextVector3

Last updated 3 months ago