|
SCV
4.2.1
Simple Components for Visual
|
Mathematic functions. More...
Functions | |
| bool | isInside (scv::Point p11, scv::Point p12, scv::Point p21, scv::Point p22) |
| Widths are positive and should grow to right and down. | |
| double | nearestValue (double p, double p1, double p2) |
| Return the nearest value from 'p'. | |
| void | intersectSquare (scv::Point &p11, scv::Point &p12, scv::Point &p21, scv::Point &p22) |
Mathematic functions.
|
inline |
P11__________
| |
| P21__|_______
| | | |
|_______|____P12 |
| |
|____________P22
return New square points by reference.
|
inline |
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.
|
inline |
Return the nearest value from 'p'.