Skip to content

Latest commit

 

History

History
88 lines (61 loc) · 1.7 KB

quick_maths.md

File metadata and controls

88 lines (61 loc) · 1.7 KB

📠 quick_maths

create_vector2d

quick_maths.create_vector2d(x, y) c_vector2d

type
x float
y float
z float

create_vector3d

quick_maths.create_vector3d(x, y, z) c_vector3d

type
x float
y float
z float

create_vector4d

quick_maths.create_vector4d(x, y, w, h) c_vector4d

type
x float
y float
w float
h float

create_color

quick_maths.create_color(r, g, b, a) c_color

type
r float
g float
b float
a float

vector_angles

quick_maths.vector_angles(forward) c_vector3d

type
forward c_vector3d

calculate_angle

quick_maths.calculate_angle(from, to) c_vector3d

type
from c_vector3d
to c_vector3d

get_distance_2d

quick_maths.get_distance_2d(from, to) float

type
from c_vector2d
to c_vector2d

get_distance_3d

quick_maths.get_distance_3d (from, to) float

type
from c_vector3d
to c_vector3d

get_fov

quick_maths.get_fov(viewangles, start, end) float

type
from c_vector3d
start c_vector3d
end c_vector3d