Skip to content

math

Info

This page describes only overridden and custom functions.
Other functions of the standard Lua environment haven't been changed in any aspect

calc_angle

math.calc_angle(src: vec3_t, dst: vec3_t): angle_t

Name Type Description
src vec3_t Source vector
dst vec3_t Destination vector

calc_fov

math.calc_fov(src: angle_t, dst: angle_t): number

Name Type Description
src angle_t Source angle
dst angle_t Destination angle

normalize_angle

math.normalize_angle(angle: number): number

Name Type Description
angle number Angle

vector_angles

math.vector_angles(forward: vec3_t): angle_t

Name Type Description
forward vec3_t Vector

angle_vectors

math.angle_vectors(angles: angle_t): forward, right, up

Name Type Description
angles angle_t Angles