SPH
Public Member Functions | List of all members
Triangle Class Reference

Triangle.h. More...

#include <Triangle.h>

Public Member Functions

 Triangle ()=default
 
 Triangle (const Vector &v1, const Vector &v2, const Vector &v3)
 
 Triangle (const Triangle &other)
 
Triangleoperator= (const Triangle &other)
 
INLINE Vectoroperator[] (const Size idx)
 
INLINE const Vectoroperator[] (const Size idx) const
 
INLINE Vector center () const
 
INLINE Vector normal () const
 
INLINE Float area () const
 
INLINE Box getBBox () const
 
INLINE bool isValid () const
 

Detailed Description

Triangle.h.

Object representing a three-dimensional triangle

Author
Pavel Sevecek (sevecek at sirrah.troja.mff.cuni.cz)
Date
2016-2021

Represents three vertices of the triangle

Definition at line 14 of file Triangle.h.

Constructor & Destructor Documentation

◆ Triangle() [1/3]

Triangle::Triangle ( )
default

◆ Triangle() [2/3]

Triangle::Triangle ( const Vector v1,
const Vector v2,
const Vector v3 
)
inline

Definition at line 21 of file Triangle.h.

◆ Triangle() [3/3]

Triangle::Triangle ( const Triangle other)
inline

Definition at line 26 of file Triangle.h.

Member Function Documentation

◆ area()

INLINE Float Triangle::area ( ) const
inline

Definition at line 55 of file Triangle.h.

◆ center()

INLINE Vector Triangle::center ( ) const
inline

Definition at line 44 of file Triangle.h.

◆ getBBox()

INLINE Box Triangle::getBBox ( ) const
inline

Definition at line 62 of file Triangle.h.

◆ isValid()

INLINE bool Triangle::isValid ( ) const
inline

Definition at line 70 of file Triangle.h.

◆ normal()

INLINE Vector Triangle::normal ( ) const
inline

Definition at line 48 of file Triangle.h.

◆ operator=()

Triangle& Triangle::operator= ( const Triangle other)
inline

Definition at line 29 of file Triangle.h.

◆ operator[]() [1/2]

INLINE Vector& Triangle::operator[] ( const Size  idx)
inline

Definition at line 36 of file Triangle.h.

◆ operator[]() [2/2]

INLINE const Vector& Triangle::operator[] ( const Size  idx) const
inline

Definition at line 40 of file Triangle.h.


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