Mathematic functions.
More...
P11__________
| |
| P21__|_______
| | | |
|_______|____P12 |
| |
|____________P22
return New square points by reference.
Widths are positive and should grow to right and down.
P11__________
| |
| P21__|_______
| | | |
|_______|____| |
| |
|____________|
p12 = width and height from p11 square.
p22 = width and height from p21 square.
- Returns
- Return true if intersection area not exist.
double scv::math::nearestValue |
( |
double |
p, |
|
|
double |
p1, |
|
|
double |
p2 |
|
) |
| |
|
inline |
Return the nearest value from 'p'.