Class acme_triangle¶
Defined in File acme_triangle.m
Inheritance Relationships¶
Base Type¶
public acme_entity
(Class acme_entity)
Class Documentation¶
-
class acme_triangle : public acme_entity¶
-
Public Functions
-
function acme_triangle(varargin)¶
-
Create a new C++ pointer to triangle object instance.
Class container for ACME triangle object
-
function getVertex1()¶
-
Create C++ pointer to triangle object instance.
Get triangle vertex 1 as ACME point object
-
function getVertex2()¶
-
Get triangle vertex 2 as ACME point object.
-
function getVertex3()¶
-
Get triangle vertex 3 as ACME point object.
-
function setVertex1(other_obj)¶
-
Set triangle vertex 1 with an ACME point object.
-
function setVertex2(other_obj)¶
-
Set triangle vertex 2 with an ACME point object.
-
function setVertex3(other_obj)¶
-
Set triangle vertex 3 with an ACME point object.
-
function copy(other_obj)¶
-
Copy segment object from another segment.
-
function copyByHandle(handle)¶
-
Copy triangle object from another triangle handle.
-
function translate(other_obj)¶
-
Translate triangle by vector.
-
function transform(varargin)¶
-
Transform triangle by 4x4 affine transformation matrix.
-
function isInside(other_obj)¶
-
Check if ACME point is inside the triangle.
-
function isDegenerated()¶
-
Check if triangle is degenerated.
-
function isApprox(other_obj)¶
-
Check if triangles are approximatively equal.
-
function centroid()¶
-
Get triangle centroid as ACME point objecty instance.
-
function normal()¶
-
Get triangle normal.
-
function layingPlane()¶
-
Get triangle laying plane.
-
function edge(i)¶
-
Get triangle i-th edge.
-
function swap(i, j)¶
-
Swap triangle i-th and j-th vertex.
-
function clamp()¶
-
Get triangle minimum and maximum points of object instance.
-
function perimeter()¶
-
Get triangle perimeter.
-
function area()¶
-
Get triangle area.
-
function barycentric(other_obj)¶
-
Compute barycentric coordinates (u,v,w) for ACME point.
-
function isParallel(other_obj)¶
-
Check if triangle is parallel to an ACME object.
-
function isOrthogonal(other_obj)¶
-
Check if triangle is orthogonal to an ACME object.
-
function isCollinear(other_obj)¶
-
Check if triangle is collinear to an ACME object.
-
function isCoplanar(other_obj)¶
-
Check if triangle is coplanar to an ACME object.
-
function intersection(other_obj)¶
-
Intersect triangle with an ACME object.
-
function disp()¶
-
Display object data.
-
function plot(figure_name, color)¶
-
Plot triangle object.
-
virtual function type()¶
-
Get object type as string.
-
function acme_triangle(varargin)¶