|
| ivec (const vec &v) |
|
| ivec (int a, int b, int c) |
|
| ivec (int d, int row, int col, int depth) |
|
| ivec (int i, const ivec &co, int size) |
|
| ivec (const ivec2 &v, int z=0) |
|
| ivec (const svec &v) |
|
int & | operator[] (int i) |
|
int | operator[] (int i) const |
|
bool | operator== (const ivec &v) const |
|
bool | operator!= (const ivec &v) const |
|
ivec | operator+ (const ivec &v) const |
|
| operator bool () const |
| Type conversion operator from ivec -> bool.
|
|
ivec & | shl (int n) |
|
ivec & | shr (int n) |
|
ivec & | mul (int n) |
|
ivec & | div (int n) |
|
ivec & | add (int n) |
|
ivec & | sub (int n) |
|
ivec & | mul (const ivec &v) |
|
ivec & | div (const ivec &v) |
|
ivec & | add (const ivec &v) |
|
ivec & | sub (const ivec &v) |
|
ivec & | mask (int n) |
|
ivec & | neg () |
|
ivec & | min (const ivec &o) |
|
ivec & | max (const ivec &o) |
|
ivec & | min (int n) |
|
ivec & | max (int n) |
|
ivec & | abs () |
|
ivec & | clamp (int l, int h) |
|
ivec & | cross (const ivec &a, const ivec &b) |
|
int | dot (const ivec &o) const |
|
float | dist (const plane &p) const |
|
|
union { | |
|
struct { | |
|
int x | |
|
int y | |
|
int z | |
|
} | | |
|
struct { | |
|
int r | |
|
int g | |
|
int b | |
|
} | | |
|
int v [3] | |
|
}; | | |
|
◆ operator bool()
ivec::operator bool |
( |
| ) |
const |
|
inlineexplicit |
Type conversion operator from ivec -> bool.
If this ivec is identical to the origin (0,0,0), returns false; for any other values of (x,y,z) returns true. This is behavior analogous to int in three dimensions.
The documentation for this struct was generated from the following file:
- /github/workspace/src/libprimis-headers/geom.h