handmade.math

Undocumented in source.

Members

Aliases

cos
alias cos = zig_cos
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.
floor
alias floor = zig_floor
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.
sin
alias sin = zig_sin
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.
tan
alias tan = zig_tan
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.

Functions

radians
float radians(float deg)

Converts degrees to radians

sqrt
auto sqrt(T value)

Generic square root function

zig_cos
double zig_cos(double value)

Cosine function from Zig standard library

zig_floor
double zig_floor(double value)

Floor function from Zig standard library

zig_sin
double zig_sin(double value)

Sine function from Zig standard library

zig_sqrt
double zig_sqrt(size_t value)

Square root function for size_t from Zig standard library

zig_sqrtf
double zig_sqrtf(double value)

Square root function for floating point from Zig standard library

zig_tan
double zig_tan(double value)

Tangent function from Zig standard library

Imports

PI (from std.math)
public import std.math : PI;
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.
cos (from core.stdc.math)
public import core.stdc.math : sqrt, cos, sin, tan, floor;
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.
floor (from core.stdc.math)
public import core.stdc.math : sqrt, cos, sin, tan, floor;
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.
sin (from core.stdc.math)
public import core.stdc.math : sqrt, cos, sin, tan, floor;
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.
sqrt (from core.stdc.math)
public import core.stdc.math : sqrt, cos, sin, tan, floor;
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.
tan (from core.stdc.math)
public import core.stdc.math : sqrt, cos, sin, tan, floor;
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.

Manifest constants

PI
enum PI;

Approximate value of pi

Structs

Mat4
struct Mat4

4x4 Matrix structure for transformations

Vec2
struct Vec2

2D Vector structure with x and y coordinates

Vec3
struct Vec3

3D Vector structure with x, y, and z coordinates

Meta