Triangle2D Class Reference
Clothoids
|
Triangle2D Class Reference
Inheritance diagram for Triangle2D:
Public Member Functions | |
function | Triangle2D (in varargin) |
function | obj_handle (in self) |
Destroy the C++ class instance. | |
function | is_type (in ignoredArg) |
function | build (in self, in varargin) |
function | translate (in self, in tx, in ty) |
move the triangle by (tx,ty) | |
function | scale (in self, in sc) |
scale triangle by sc factor | |
function | points (in self) |
function | rotate (in self, in angle, in cx, in cy) |
function | isInside (in self, in x, in y) |
function | distanceMin (in self, in x, in y) |
function | distanceMax (in self, in x, in y) |
function | info (in self) |
function | overlap (in self, in obj) |
function | plot (in self, in color, in varargin) |
function | plot2 (in self, in varargin) |
Constructor & Destructor Documentation
◆ Triangle2D()
function Triangle2D::Triangle2D | ( | in | varargin | ) |
Create a new C++ class instance for the triangle object
Usage:
ref = Triangle2D();
ref = Triangle2D( x0, y0, x1, y1, x2, y2 );
ref = Triangle2D( p0, p1, p2 );
On output:
ref
: reference handle to the object instance
Member Function Documentation
◆ rotate()
function Triangle2D::rotate | ( | in | self, |
in | angle, | ||
in | cx, | ||
in | cy ) |
Rotate the triangle by angle with center of rotation (cx,cy)
Usage:
ref.rotate(angle, cx, cy)
On input:
angle
: the angle of rotationcx
,cy
: coordinates of the centre of rotation
The documentation for this class was generated from the following file:
- /Users/enrico/Ricerca/develop/PINS/pins-mechatronix/LibSources/submodules/Clothoids/toolbox/lib/Triangle2D.m
Generated by 1.12.0