Triangle class

From Solid Graphics Wiki

Revision as of 03:13, 30 April 2008 by Rgrof (Talk | contribs)
(diff) ←Older revision | Current revision (diff) | Newer revision→ (diff)
Jump to: navigation, search
Triangle class
Namespace: SKL3D
Base type: (None)
Include: Skl3D.h
Lib (Release): SKL.lib
Lib (Debug): SKL_D.lib

The Triangle class specifies a triangle using three point class values as the triangle corners..


Default class constructor does not initialize the triangle point values to any value. This is on purpose for performance reasons. Other class costructors allow to initialize the an triangle using three point values or a TriangleByRef and PointList instance.


Field name Type Description
point Point[ 3 ] array of the three triangle's point corners.


Method name Description
Area Calculates the triangle area.
Center Calculates the triangle center point
Edge Returns specified triangle edge as LineSegment.
Transform Transforms the three triangle points using specified matrix.


= Allows assignment of one triangle to another.

See Also


SolidKit Library Documentation

Personal tools