ggPoint3 operator*(const ggHAffineMatrix3 &m
, const ggPoint3 &p)
{
return ggPoint3(
m.e[0][0] * p.x() + m.e[0][1] * p.y() + m.e[0][2] * p.z() + m.e[0][3],
m.e[1][0] * p.x() + m.e[1][1] * p.y() + m.e[1][2] * p.z() + m.e[1][3],
m.e[2][0] * p.x() + m.e[2][1] * p.y() + m.e[2][2] * p.z() + m.e[2][3]
);
}
int * const i = p /* a constant pointer to an integer that may vary */
int const * i = p /* a variable pointer to a constant integer */
const int * i = p /* a variable pointer to a constant integer */
const int * const i = &p; /* a constant pointer to a constant integer */
int const * const i = &p; /* a constant pointer to a constant integer */
Example: For large initialized arrays
# pragma variable (arrayname, norent)
ANSIALIAS RENT and OPT(2) | NOANSIALIAS RENT and OPT(2) |
---|---|
|
|