Evospace  0.19.0
Modding API
 
Loading...
Searching...
No Matches
vec3 Struct Reference

Vec3 float. More...

Static Public Member Functions

static vec3 new (float x, float y, float z)
 Static function. Construct Vec3 from 3 numbers.
 

Public Attributes

float x
 Property. First dim value.
 
float y
 Property. Second dim value.
 
float z
 Property. Third dim value.
 

Static Public Attributes

static vec3i zero
 Readonly property. Construct Vec3 from (0.0, 0.0, 0.0)
 
static vec3i one
 Readonly property. Construct Vec3 from (1.0, 1.0, 1.0)
 
static vec3i up
 Readonly property. Construct Vec3 from up (0.0, 0.0, 1.0)
 
static vec3i down
 Readonly property. Construct Vec3 from (0.0, 0.0, -1.0)
 
static vec3i left
 Readonly property. Construct Vec3 from (0.0, 1.0, 0.0)
 
static vec3i right
 Readonly property. Construct Vec3 from (0.0, -1.0, 0.0)
 
static vec3 back
 Readonly property. Construct Vec3 from (-1.0, 0.0, 0.0)
 
static vec3 front
 Static function. Construct Vec3 from (1.0, 0.0, 0.0)
 

Detailed Description

Vec3 float.

Definition at line 123 of file LuaStateDoxy.h.

Member Function Documentation

◆ new()

static vec3 vec3::new ( float x,
float y,
float z )
static

Static function. Construct Vec3 from 3 numbers.

lua syntax

vec = Vec.new(x, y, z)
Parameters
x
y
z
Returns
Vec3(x, y, z) struct

Member Data Documentation

◆ back

vec3 vec3::back
static

Readonly property. Construct Vec3 from (-1.0, 0.0, 0.0)

lua syntax

vec = Vec.back
Returns
Vec3(-1.0, 0.0, 0.0) struct

Definition at line 221 of file LuaStateDoxy.h.

◆ down

vec3i vec3::down
static

Readonly property. Construct Vec3 from (0.0, 0.0, -1.0)

lua syntax

vec = Vec3.down
Returns
Vec3(0.0, 0.0, -1.0) struct

Definition at line 191 of file LuaStateDoxy.h.

◆ front

vec3 vec3::front
static

Static function. Construct Vec3 from (1.0, 0.0, 0.0)

lua syntax

vec = Vec3.front
Returns
Vec3(1.0, 0.0, 0.0) struct

Definition at line 231 of file LuaStateDoxy.h.

◆ left

vec3i vec3::left
static

Readonly property. Construct Vec3 from (0.0, 1.0, 0.0)

lua syntax

vec = Vec3.left
Returns
Vec3(0.0, 1.0, 0.0) struct

Definition at line 201 of file LuaStateDoxy.h.

◆ one

vec3i vec3::one
static

Readonly property. Construct Vec3 from (1.0, 1.0, 1.0)

lua syntax

vec = Vec3.one
Returns
Vec3(1.0, 1.0, 1.0) struct

Definition at line 171 of file LuaStateDoxy.h.

◆ right

vec3i vec3::right
static

Readonly property. Construct Vec3 from (0.0, -1.0, 0.0)

lua syntax

vec = Vec3.right
Returns
Vec3(0.0, -1.0, 0.0) struct

Definition at line 211 of file LuaStateDoxy.h.

◆ up

vec3i vec3::up
static

Readonly property. Construct Vec3 from up (0.0, 0.0, 1.0)

lua syntax

vec = Vec3.up
Returns
Vec3(0.0, 0.0, 1.0) struct

Definition at line 181 of file LuaStateDoxy.h.

◆ zero

vec3i vec3::zero
static

Readonly property. Construct Vec3 from (0.0, 0.0, 0.0)

lua syntax

vec = Vec3.zero
Returns
Vec3(0.0, 0.0, 0.0) struct

Definition at line 161 of file LuaStateDoxy.h.