Class Triangle2D¶
Defined in File Triangle2D.m
Inheritance Relationships¶
Base Type¶
public handle
Class Documentation¶
-
class Triangle2D : public handle¶
-
Public Functions
-
function Triangle2D( 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
-
function obj_handle( self)¶
-
Destroy the C++ class instance.
-
function is_type( ignoredArg)¶
-
function build( self, varargin)¶
-
function translate( self, tx, ty)¶
-
move the triangle by
(tx,ty)
-
function scale( self, sc)¶
-
scale triangle by
scfactor
-
function points( self)¶
-
function rotate( self, angle, cx, 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
-
function isInside( self, x, y)¶
-
function distanceMin( self, x, y)¶
-
function distanceMax( self, x, y)¶
-
function info( self)¶
-
function overlap( self, obj)¶
-
function plot( self, color, varargin)¶
-
function plot2( self, varargin)¶
-
function Triangle2D( varargin)¶