KanoopCommonQt 2.1.1
Kanoop foundational Qt utility library
Loading...
Searching...
No Matches
Triangle Class Reference

A 2D triangle defined by three vertices. More...

#include <triangle.h>

Public Member Functions

 Triangle ()
 Default constructor — creates a degenerate triangle at the origin.
 
 Triangle (const QPointF &a, const QPointF &b, const QPointF &c)
 Construct a triangle from three vertex points.
 

Detailed Description

A 2D triangle defined by three vertices.

Represents a 2D triangle by its three vertex points.

Definition at line 13 of file triangle.h.

Constructor & Destructor Documentation

◆ Triangle() [1/2]

Triangle::Triangle ( )
inline

Default constructor — creates a degenerate triangle at the origin.

Definition at line 17 of file triangle.h.

◆ Triangle() [2/2]

Triangle::Triangle ( const QPointF &  a,
const QPointF &  b,
const QPointF &  c 
)
inline

Construct a triangle from three vertex points.

Parameters
aFirst vertex
bSecond vertex
cThird vertex

Definition at line 25 of file triangle.h.


The documentation for this class was generated from the following file: