All base classes related to 3D manipulation.
More...
#include <cmath>
#include <math.h>
#include <vector>
#include <ostream>
Go to the source code of this file.
|
| double | ABS (double a) |
| | Return the absolute value. More...
|
| |
| double | SIGNE (double a) |
| | Return the number sign. More...
|
| |
| double | MAX (double a, double b) |
| | Return the biggest number of two ones. More...
|
| |
| double | MAX3 (double a, double b, double c) |
| | Return the biggest number of three ones. More...
|
| |
| double | MIN (double a, double b) |
| | Return the smallest number of two ones. More...
|
| |
| double | DEGTORAD (double a) |
| | Converts an angle from degrees to radians. More...
|
| |
| double | RADTODEG (double a) |
| | Converts an angle from radians to degrees. More...
|
| |
| double | GRATORAD (double a) |
| | Converts an angle from gradians to radians. More...
|
| |
| double | RADTOGRA (double a) |
| | Converts an angle from radians to gradians. More...
|
| |
| double | GRATODEG (double a) |
| | Converts an angle from gradians to degrees. More...
|
| |
| double | DEGTOGRA (double a) |
| | Converts an angle from degrees to gradians. More...
|
| |
| int | ROUND (double a) |
| | Compute the rounded value of a number. More...
|
| |
| double | BORNE (double a, double b, double c) |
| | Limit a number. More...
|
| |
| int | BORNE (int a) |
| | Limit a number between 0 and 255. More...
|
| |
| ::std::ostream & | operator<< (::std::ostream &os, const OCoord3D &c) |
| |
| OCoord3D | operator+ (const OCoord3D &coord, const OVector3D &vect) |
| | Return a OCoord3D from an operator+ between a OCoord3D and a OVector3D. More...
|
| |
| ::std::ostream & | operator<< (::std::ostream &os, const OVector3D &v) |
| |
| ::std::ostream & | operator<< (::std::ostream &os, const OPoint3D &v) |
| |
| OVector3D | operator* (const OMatrix &mat, const OVector3D &vec) |
| |
| OPoint3D | operator* (const OMatrix &mat, const OPoint3D &pt) |
| |
All base classes related to 3D manipulation.
Definition in file 3d.h.
◆ EPSILON_13
| #define EPSILON_13 0.0000000000001 |
Definition at line 41 of file 3d.h.
◆ EPSILON_3
Definition at line 37 of file 3d.h.
◆ EPSILON_5
| #define EPSILON_5 0.00001 |
Definition at line 38 of file 3d.h.
◆ EPSILON_50
| #define EPSILON_50 1.e-50 |
Definition at line 42 of file 3d.h.
◆ EPSILON_6
| #define EPSILON_6 0.000001 |
Definition at line 39 of file 3d.h.
◆ EPSILON_7
| #define EPSILON_7 0.0000001 |
Definition at line 40 of file 3d.h.
◆ INTERS_CONFONDU
| #define INTERS_CONFONDU 2 |
The elements match.
Definition at line 31 of file 3d.h.
◆ INTERS_NULLE
No intersection.
Definition at line 35 of file 3d.h.
◆ INTERS_OUI
The intersection exists.
Definition at line 33 of file 3d.h.
◆ M_2PI
| #define M_2PI 6.283185307179586476925287766559 |
2Pi.
Definition at line 55 of file 3d.h.
◆ M_PI
| #define M_PI 3.1415926535897932384626433832795 |
Pi.
Definition at line 51 of file 3d.h.
◆ TYSEUILCONFONDUS
Definition at line 47 of file 3d.h.
◆ TabPoint3D
Definition at line 484 of file 3d.h.
◆ ABS()
Return the absolute value.
- Parameters
-
- Returns
- The absolute value.
Definition at line 67 of file 3d.h.
◆ BORNE() [1/2]
| double BORNE |
( |
double |
a, |
|
|
double |
b, |
|
|
double |
c |
|
) |
| |
|
inline |
Limit a number.
- Parameters
-
| a | A number. |
| b | Lower limit. |
| c | Upper limit. |
- Returns
- The number or one of the limits.
Definition at line 205 of file 3d.h.
◆ BORNE() [2/2]
Limit a number between 0 and 255.
- Parameters
-
- Returns
- A number or one of the limits.
Definition at line 216 of file 3d.h.
◆ DEGTOGRA()
| double DEGTOGRA |
( |
double |
a | ) |
|
|
inline |
Converts an angle from degrees to gradians.
- Parameters
-
- Returns
- Angle in gradians.
Definition at line 181 of file 3d.h.
◆ DEGTORAD()
| double DEGTORAD |
( |
double |
a | ) |
|
|
inline |
Converts an angle from degrees to radians.
- Parameters
-
- Returns
- Angle in radians.
Definition at line 126 of file 3d.h.
◆ GRATODEG()
| double GRATODEG |
( |
double |
a | ) |
|
|
inline |
Converts an angle from gradians to degrees.
- Parameters
-
- Returns
- Angle in degrees.
Definition at line 170 of file 3d.h.
◆ GRATORAD()
| double GRATORAD |
( |
double |
a | ) |
|
|
inline |
Converts an angle from gradians to radians.
- Parameters
-
- Returns
- Angle in radians.
Definition at line 148 of file 3d.h.
◆ MAX()
| double MAX |
( |
double |
a, |
|
|
double |
b |
|
) |
| |
|
inline |
Return the biggest number of two ones.
- Parameters
-
| a | The first number. |
| b | The second number. |
- Returns
- The biggest number between a and b.
Definition at line 90 of file 3d.h.
◆ MAX3()
| double MAX3 |
( |
double |
a, |
|
|
double |
b, |
|
|
double |
c |
|
) |
| |
|
inline |
Return the biggest number of three ones.
- Parameters
-
| a | First number. |
| b | Second number. |
| c | Third number. |
- Returns
- Biggest number between a, b, and c.
Definition at line 103 of file 3d.h.
◆ MIN()
| double MIN |
( |
double |
a, |
|
|
double |
b |
|
) |
| |
|
inline |
Return the smallest number of two ones.
- Parameters
-
| a | First number. |
| b | Second number. |
- Returns
- Smallest number between a and b.
Definition at line 115 of file 3d.h.
◆ operator*() [1/2]
◆ operator*() [2/2]
◆ operator+()
◆ 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 |
|
) |
| |
◆ RADTODEG()
| double RADTODEG |
( |
double |
a | ) |
|
|
inline |
Converts an angle from radians to degrees.
- Parameters
-
- Returns
- Angle in degrees.
Definition at line 137 of file 3d.h.
◆ RADTOGRA()
| double RADTOGRA |
( |
double |
a | ) |
|
|
inline |
Converts an angle from radians to gradians.
- Parameters
-
- Returns
- Angle in gradians.
Definition at line 159 of file 3d.h.
◆ ROUND()
Compute the rounded value of a number.
- Parameters
-
- Returns
- Rounded value.
Definition at line 192 of file 3d.h.
◆ SIGNE()
Return the number sign.
- Parameters
-
- Returns
- The sign (1 or -1).
Definition at line 78 of file 3d.h.