#include <math.h>
#include <stdio.h>
#include "3d.h"
Go to the source code of this file.
|
| #define | MAX(A, B) (((A) > (B)) ? (A) : (B)) |
| |
| #define | MIN(A, B) (((A) > (B)) ? (B) : (A)) |
| |
| #define | minP(A, B, C) ((((A).C) > ((B).C)) ? (B) : (A)) |
| |
| #define | coeff_ang(PA, PB) (((PB)._y - (PA)._y) / ((PB)._x - (PA)._x)) |
| |
| #define | DOT(u, v) ((u)._x * (v)._x + (u)._y * (v)._y + (u)._z * (v)._z) |
| |
◆ coeff_ang
| #define coeff_ang |
( |
|
PA, |
|
|
|
PB |
|
) |
| (((PB)._y - (PA)._y) / ((PB)._x - (PA)._x)) |
◆ DOT
| #define DOT |
( |
|
u, |
|
|
|
v |
|
) |
| ((u)._x * (v)._x + (u)._y * (v)._y + (u)._z * (v)._z) |
◆ MAX
| #define MAX |
( |
|
A, |
|
|
|
B |
|
) |
| (((A) > (B)) ? (A) : (B)) |
◆ MIN
| #define MIN |
( |
|
A, |
|
|
|
B |
|
) |
| (((A) > (B)) ? (B) : (A)) |
◆ minP
| #define minP |
( |
|
A, |
|
|
|
B, |
|
|
|
C |
|
) |
| ((((A).C) > ((B).C)) ? (B) : (A)) |
◆ operator*() [1/3]
◆ operator*() [2/3]
◆ operator*() [3/3]
◆ operator<<() [1/3]
| ::std::ostream& operator<< |
( |
::std::ostream & |
os, |
|
|
const OCoord3D & |
c |
|
) |
| |
◆ operator<<() [2/3]
| ::std::ostream& operator<< |
( |
::std::ostream & |
os, |
|
|
const OPoint3D & |
v |
|
) |
| |
◆ operator<<() [3/3]
| ::std::ostream& operator<< |
( |
::std::ostream & |
os, |
|
|
const OVector3D & |
v |
|
) |
| |