Trichromatic integer arithmetic.
More...
#include <pixel_arithmetic.h>
Trichromatic integer arithmetic.
Definition at line 144 of file pixel_arithmetic.h.
◆ operating_type
◆ pixint3() [1/3]
Beatmup::pixint3::pixint3 |
( |
| ) |
|
|
inline |
◆ pixint3() [2/3]
Beatmup::pixint3::pixint3 |
( |
const color3i & |
_ | ) |
|
|
inline |
◆ pixint3() [3/3]
Beatmup::pixint3::pixint3 |
( |
int |
r, |
|
|
int |
g, |
|
|
int |
b |
|
) |
| |
|
inline |
◆ operator pixint1()
Beatmup::pixint3::operator pixint1 |
( |
| ) |
const |
|
inline |
◆ operator pixint4()
Beatmup::pixint3::operator pixint4 |
( |
| ) |
const |
|
inline |
◆ operator pixfloat1()
Beatmup::pixint3::operator pixfloat1 |
( |
| ) |
const |
|
inline |
◆ operator pixfloat3()
Beatmup::pixint3::operator pixfloat3 |
( |
| ) |
const |
|
inline |
◆ operator pixfloat4()
Beatmup::pixint3::operator pixfloat4 |
( |
| ) |
const |
|
inline |
◆ operator==()
bool Beatmup::pixint3::operator== |
( |
const pixint3 |
P | ) |
const |
|
inline |
◆ operator=() [1/6]
void Beatmup::pixint3::operator= |
( |
const pixint1 |
P | ) |
|
|
inline |
◆ operator=() [2/6]
void Beatmup::pixint3::operator= |
( |
const pixfloat1 |
P | ) |
|
|
inline |
◆ operator=() [3/6]
void Beatmup::pixint3::operator= |
( |
const pixint3 |
P | ) |
|
|
inline |
◆ operator=() [4/6]
void Beatmup::pixint3::operator= |
( |
const pixfloat3 |
P | ) |
|
|
inline |
◆ operator=() [5/6]
void Beatmup::pixint3::operator= |
( |
const pixint4 |
P | ) |
|
|
inline |
◆ operator=() [6/6]
void Beatmup::pixint3::operator= |
( |
const pixfloat4 |
P | ) |
|
|
inline |
◆ operator+() [1/8]
pixint3 Beatmup::pixint3::operator+ |
( |
const int |
P | ) |
const |
|
inline |
◆ operator+() [2/8]
pixfloat3 Beatmup::pixint3::operator+ |
( |
const float |
P | ) |
const |
|
inline |
Definition at line 807 of file pixel_arithmetic.h.
808 return pixfloat3{
r / 255.0f + P,
g / 255.0f + P,
b / 255.0f + P };
◆ operator+() [3/8]
◆ operator+() [4/8]
Definition at line 823 of file pixel_arithmetic.h.
824 return pixfloat3{
r / 255.0f + P.x,
g / 255.0f + P.x,
b / 255.0f + P.x };
◆ operator+() [5/8]
◆ operator+() [6/8]
Definition at line 827 of file pixel_arithmetic.h.
828 return pixfloat3{
r / 255.0f + P.r,
g / 255.0f + P.g,
b / 255.0f + P.b };
◆ operator+() [7/8]
◆ operator+() [8/8]
Definition at line 831 of file pixel_arithmetic.h.
832 return pixfloat4(
r / 255.0f + P.r,
g / 255.0f + P.g,
b / 255.0f + P.b, 1.0f + P.a);
◆ operator-() [1/8]
pixint3 Beatmup::pixint3::operator- |
( |
const int |
P | ) |
const |
|
inline |
◆ operator-() [2/8]
pixfloat3 Beatmup::pixint3::operator- |
( |
const float |
P | ) |
const |
|
inline |
Definition at line 840 of file pixel_arithmetic.h.
841 return pixfloat3{
r / 255.0f - P,
g / 255.0f - P,
b / 255.0f - P };
◆ operator-() [3/8]
◆ operator-() [4/8]
Definition at line 856 of file pixel_arithmetic.h.
857 return pixfloat3{
r / 255.0f - P.x,
g / 255.0f - P.x,
b / 255.0f - P.x };
◆ operator-() [5/8]
◆ operator-() [6/8]
Definition at line 860 of file pixel_arithmetic.h.
861 return pixfloat3{
r / 255.0f - P.r,
g / 255.0f - P.g,
b / 255.0f - P.b };
◆ operator-() [7/8]
◆ operator-() [8/8]
Definition at line 864 of file pixel_arithmetic.h.
865 return pixfloat4(
r / 255.0f - P.r,
g / 255.0f - P.g,
b / 255.0f - P.b, 1.0f - P.a);
◆ operator*() [1/8]
pixint3 Beatmup::pixint3::operator* |
( |
const int |
P | ) |
const |
|
inline |
◆ operator*() [2/8]
pixfloat3 Beatmup::pixint3::operator* |
( |
const float |
P | ) |
const |
|
inline |
Definition at line 873 of file pixel_arithmetic.h.
874 return pixfloat3{
r * P / 255.0f,
g * P / 255.0f,
b * P / 255.0f };
◆ operator*() [3/8]
◆ operator*() [4/8]
Definition at line 889 of file pixel_arithmetic.h.
890 return pixfloat3{
r * P.x / 255.0f,
g * P.x / 255.0f,
b * P.x / 255.0f };
◆ operator*() [5/8]
◆ operator*() [6/8]
Definition at line 893 of file pixel_arithmetic.h.
894 return pixfloat3{
r * P.r / 255.0f,
g * P.g / 255.0f,
b * P.b / 255.0f };
◆ operator*() [7/8]
Definition at line 885 of file pixel_arithmetic.h.
886 return pixint4(
r * P.r / 255,
g * P.g / 255,
b * P.b / 255, P.a);
◆ operator*() [8/8]
Definition at line 897 of file pixel_arithmetic.h.
898 return pixfloat4(
r * P.r / 255.0f,
g * P.g / 255.0f,
b * P.b / 255.0f, P.a);
◆ operator/()
pixint3 Beatmup::pixint3::operator/ |
( |
const int |
P | ) |
const |
|
inline |
◆ makeFloat()
pixfloat3 Beatmup::pixint3::makeFloat |
( |
| ) |
const |
|
inline |
◆ zero()
void Beatmup::pixint3::zero |
( |
| ) |
|
|
inline |
◆ sum()
int Beatmup::pixint3::sum |
( |
| ) |
const |
|
inline |
◆ mean()
float Beatmup::pixint3::mean |
( |
| ) |
const |
|
inline |
◆ max()
int Beatmup::pixint3::max |
( |
| ) |
const |
|
inline |
Definition at line 191 of file pixel_arithmetic.h.
CustomPoint< numeric > max(const CustomPoint< numeric > &a, const CustomPoint< numeric > &b)
◆ abs()
pixint3 Beatmup::pixint3::abs |
( |
| ) |
const |
|
inline |
The documentation for this struct was generated from the following file: