Triangle2D Class Reference
Clothoids
|
G2lib::Triangle2D Class Reference
#include <Triangle2D.hxx>
Public Member Functions | |
Triangle2D (Triangle2D const &t) | |
Triangle2D (real_type x1, real_type y1, real_type x2, real_type y2, real_type x3, real_type y3, real_type s0, real_type s1, integer icurve) | |
Triangle2D (real_type const p1[2], real_type const p2[2], real_type const p3[2], real_type s0, real_type s1, integer icurve) | |
Triangle2D const & | operator= (Triangle2D const &t) |
void | build (real_type const p1[2], real_type const p2[2], real_type const p3[2], real_type s0, real_type s1, integer icurve) |
void | build (real_type x1, real_type y1, real_type x2, real_type y2, real_type x3, real_type y3, real_type s0, real_type s1, integer icurve) |
integer | Icurve () const |
real_type | x1 () const |
real_type | y1 () const |
real_type | x2 () const |
real_type | y2 () const |
real_type | x3 () const |
real_type | y3 () const |
real_type | S0 () const |
real_type | S1 () const |
void | translate (real_type tx, real_type ty) |
void | rotate (real_type angle, real_type cx, real_type cy) |
void | scale (real_type sc) |
void | bbox (real_type &xmin, real_type &ymin, real_type &xmax, real_type &ymax) const |
real_type | baricenter_x () const |
real_type | baricenter_y () const |
real_type const * | P1 () const |
real_type const * | P2 () const |
real_type const * | P3 () const |
bool | overlap (Triangle2D const &) const |
integer | is_counter_clockwise () const |
integer | is_inside (real_type x, real_type y) const |
integer | is_inside (real_type const pt[2]) const |
real_type | dist_min (real_type x, real_type y) const |
real_type | dist_max (real_type x, real_type y) const |
string | info () const |
void | info (ostream_type &stream) const |
Friends | |
ostream_type & | operator<< (ostream_type &stream, Triangle2D const &c) |
Detailed Description
Class to manage Triangle for BB of clothoid curve
Member Function Documentation
◆ is_counter_clockwise()
|
inline |
return +1 = CounterClockwise return -1 = Clockwise return 0 = degenerate triangle
◆ is_inside()
return +1 = inside return -1 = outside return 0 = on the border
Friends And Related Symbol Documentation
◆ operator<<
|
friend |
Print on strem the Triangle2D
object
- Parameters
-
stream the output stream t an instance of Triangle2D
object
- Returns
- the output stream
The documentation for this class was generated from the following files:
- /Users/enrico/Ricerca/develop/PINS/pins-mechatronix/LibSources/submodules/Clothoids/src/Clothoids/Triangle2D.hxx
- /Users/enrico/Ricerca/develop/PINS/pins-mechatronix/LibSources/submodules/Clothoids/src/Triangle2D.cc
Generated by 1.12.0