|
Not Enough Math
Lightweight zero-dependency C++ math library
|
Functions | |
| static float4 | rgb (float r, float g, float b) |
| static float4 | rgba (float r, float g, float b, float a) |
| static float4 | opaque (float3 rgb) |
| static float4 | opaque (float4 rgba) |
| static float4 | transparent (float3 rgb) |
| static float4 | transparent (float4 rgba) |
Variables | |
| static constexpr float | ALPHA_TRANSPARENT = 0.f |
| static constexpr float | ALPHA_OPAQUE = 1.f |
| static float4 | clear = rgba(0.f, 0.f, 0.f, ALPHA_TRANSPARENT) |
| static float4 | white = rgb(1.f, 1.f, 1.f) |
| static float4 | black = rgb(0.f, 0.f, 0.f) |
| static float4 | red = rgb(1.f, 0.f, 0.f) |
| static float4 | green = rgb(0.f, 1.f, 0.f) |
| static float4 | blue = rgb(0.f, 0.f, 1.f) |
| static float4 | cyan = rgb(0.f, 1.f, 1.f) |
| static float4 | yellow = rgb(1.f, 1.f, 0.f) |
|
inlinestatic |
|
inlinestatic |
|
inlinestatic |