Core Math functions
Table of Contents
Creating Vectors and Matrices
Accessing Vector Components
Vector and Matrix Operations
Binding Core Math Functions
Creating Vectors and Matrices
Creating vec2 objects
vec2 objectslocal v1 = vec2()
local v2 = vec2(1.0)
local v3 = vec2(1.0, 2.0)Creating vec3 objects
vec3 objectslocal v1 = glm.vec3()
local v2 = glm.vec3(1.0)
local v3 = glm.vec3(1.0, 2.0, 3.0)Creating vec4 objects
vec4 objectslocal v1 = glm.vec4()
local v2 = glm.vec4(1.0)
local v3 = glm.vec4(1.0, 2.0, 3.0, 4.0)Creating mat3 objects
mat3 objectsAccessing Vector Components
Accessing vec2 components
vec2 componentsAccessing vec3 components
vec3 componentsAccessing vec4 components
vec4 componentsVector and Matrix Operations
Addition
Subtraction
Multiplication
Division
Constants
Functions
Last updated
Was this helpful?