#include <math.h>
Go to the source code of this file.
Functions |
ICOORD | operator! (const ICOORD &src) |
ICOORD | operator- (const ICOORD &src) |
ICOORD | operator+ (const ICOORD &op1, const ICOORD &op2) |
ICOORD & | operator+= (ICOORD &op1, const ICOORD &op2) |
ICOORD | operator- (const ICOORD &op1, const ICOORD &op2) |
ICOORD & | operator-= (ICOORD &op1, const ICOORD &op2) |
inT32 | operator% (const ICOORD &op1, const ICOORD &op2) |
inT32 | operator* (const ICOORD &op1, const ICOORD &op2) |
ICOORD | operator* (const ICOORD &op1, inT16 scale) |
ICOORD | operator* (inT16 scale, const ICOORD &op1) |
ICOORD & | operator*= (ICOORD &op1, inT16 scale) |
ICOORD | operator/ (const ICOORD &op1, inT16 scale) |
ICOORD & | operator/= (ICOORD &op1, inT16 scale) |
FCOORD | operator! (const FCOORD &src) |
FCOORD | operator- (const FCOORD &src) |
FCOORD | operator+ (const FCOORD &op1, const FCOORD &op2) |
FCOORD & | operator+= (FCOORD &op1, const FCOORD &op2) |
FCOORD | operator- (const FCOORD &op1, const FCOORD &op2) |
FCOORD & | operator-= (FCOORD &op1, const FCOORD &op2) |
float | operator% (const FCOORD &op1, const FCOORD &op2) |
float | operator* (const FCOORD &op1, const FCOORD &op2) |
FCOORD | operator* (const FCOORD &op1, float scale) |
FCOORD | operator* (float scale, const FCOORD &op1) |
FCOORD & | operator*= (FCOORD &op1, float scale) |
FCOORD | operator/ (const FCOORD &op1, float scale) |
FCOORD & | operator/= (FCOORD &op1, float scale) |
Function Documentation
Definition at line 258 of file ipoints.h.
{
FCOORD result;
result.xcoord = -src.ycoord;
result.ycoord = src.xcoord;
return result;
}
float operator% |
( |
const FCOORD & |
op1, |
|
|
const FCOORD & |
op2 |
|
) |
| [inline] |
Definition at line 362 of file ipoints.h.
{
return op1.xcoord * op2.xcoord + op1.ycoord * op2.ycoord;
}
float operator* |
( |
const FCOORD & |
op1, |
|
|
const FCOORD & |
op2 |
|
) |
| [inline] |
Definition at line 375 of file ipoints.h.
{
return op1.xcoord * op2.ycoord - op1.ycoord * op2.xcoord;
}
FCOORD operator* |
( |
const FCOORD & |
op1, |
|
|
float |
scale |
|
) |
| [inline] |
Definition at line 388 of file ipoints.h.
{
FCOORD result;
result.xcoord = op1.xcoord * scale;
result.ycoord = op1.ycoord * scale;
return result;
}
FCOORD operator* |
( |
float |
scale, |
|
|
const FCOORD & |
op1 |
|
) |
| [inline] |
Definition at line 399 of file ipoints.h.
{
FCOORD result;
result.xcoord = op1.xcoord * scale;
result.ycoord = op1.ycoord * scale;
return result;
}
Definition at line 418 of file ipoints.h.
{
op1.xcoord *= scale;
op1.ycoord *= scale;
return op1;
}
Definition at line 294 of file ipoints.h.
{
FCOORD sum;
sum.xcoord = op1.xcoord + op2.xcoord;
sum.ycoord = op1.ycoord + op2.ycoord;
return sum;
}
Definition at line 312 of file ipoints.h.
{
op1.xcoord += op2.xcoord;
op1.ycoord += op2.ycoord;
return op1;
}
Definition at line 276 of file ipoints.h.
{
FCOORD result;
result.xcoord = -src.xcoord;
result.ycoord = -src.ycoord;
return result;
}
Definition at line 328 of file ipoints.h.
{
FCOORD sum;
sum.xcoord = op1.xcoord - op2.xcoord;
sum.ycoord = op1.ycoord - op2.ycoord;
return sum;
}
Definition at line 346 of file ipoints.h.
{
op1.xcoord -= op2.xcoord;
op1.ycoord -= op2.ycoord;
return op1;
}
FCOORD operator/ |
( |
const FCOORD & |
op1, |
|
|
float |
scale |
|
) |
| [inline] |
Definition at line 434 of file ipoints.h.
{
FCOORD result;
if (scale != 0) {
result.xcoord = op1.xcoord / scale;
result.ycoord = op1.ycoord / scale;
}
return result;
}
Definition at line 454 of file ipoints.h.
{
if (scale != 0) {
op1.xcoord /= scale;
op1.ycoord /= scale;
}
return op1;
}