Triangle class

From Solid Graphics Wiki

(Redirected from Triangle)
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..



Constructors

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.

Fields

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

Methods

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.

Operators

= Allows assignment of one triangle to another.

See Also

   


SolidKit Library Documentation

Personal tools