feisty meow concerns codebase  2.140
geometric::triangle Class Reference

Represents a geometric triangle. More...

#include <triangle.h>

Collaboration diagram for geometric::triangle:

Public Member Functions

 triangle ()
 
 triangle (const cartesian_point &vertex1, const cartesian_point &vertex2, const cartesian_point &vertex3)
 
 triangle (const triangle &to_copy)
 
 ~triangle ()
 
triangleoperator= (const triangle &to_copy)
 
bool inside (const cartesian_point &where) const
 
double area () const
 
line< double > side_1_2 () const
 
line< double > side_2_3 () const
 
line< double > side_3_1 () const
 
cartesian_point vertex_1 () const
 
cartesian_point vertex_2 () const
 
cartesian_point vertex_3 () const
 
void vertex_1 (const cartesian_point &to_set)
 
void vertex_2 (const cartesian_point &to_set)
 
void vertex_3 (const cartesian_point &to_set)
 

Protected Attributes

cartesian_point _vertex_1
 
cartesian_point _vertex_2
 
cartesian_point _vertex_3
 

Detailed Description

Represents a geometric triangle.

Definition at line 28 of file triangle.h.

Constructor & Destructor Documentation

◆ triangle() [1/3]

geometric::triangle::triangle ( )

Definition at line 25 of file triangle.cpp.

◆ triangle() [2/3]

geometric::triangle::triangle ( const cartesian_point vertex1,
const cartesian_point vertex2,
const cartesian_point vertex3 
)

Definition at line 31 of file triangle.cpp.

◆ triangle() [3/3]

geometric::triangle::triangle ( const triangle to_copy)

Definition at line 38 of file triangle.cpp.

◆ ~triangle()

geometric::triangle::~triangle ( )

Definition at line 44 of file triangle.cpp.

Member Function Documentation

◆ area()

double geometric::triangle::area ( ) const

Definition at line 83 of file triangle.cpp.

◆ inside()

bool geometric::triangle::inside ( const cartesian_point where) const

◆ operator=()

triangle & geometric::triangle::operator= ( const triangle to_copy)

Definition at line 46 of file triangle.cpp.

References _vertex_1, _vertex_2, and _vertex_3.

◆ side_1_2()

line< double > geometric::triangle::side_1_2 ( ) const

Definition at line 55 of file triangle.cpp.

References _vertex_1, and _vertex_2.

◆ side_2_3()

line< double > geometric::triangle::side_2_3 ( ) const

Definition at line 58 of file triangle.cpp.

References _vertex_2, and _vertex_3.

◆ side_3_1()

line< double > geometric::triangle::side_3_1 ( ) const

Definition at line 61 of file triangle.cpp.

References _vertex_1, and _vertex_3.

◆ vertex_1() [1/2]

cartesian_point geometric::triangle::vertex_1 ( ) const

Definition at line 64 of file triangle.cpp.

References _vertex_1.

◆ vertex_1() [2/2]

void geometric::triangle::vertex_1 ( const cartesian_point to_set)

Definition at line 70 of file triangle.cpp.

References _vertex_1.

◆ vertex_2() [1/2]

cartesian_point geometric::triangle::vertex_2 ( ) const

Definition at line 66 of file triangle.cpp.

References _vertex_2.

◆ vertex_2() [2/2]

void geometric::triangle::vertex_2 ( const cartesian_point to_set)

Definition at line 72 of file triangle.cpp.

References _vertex_2.

◆ vertex_3() [1/2]

cartesian_point geometric::triangle::vertex_3 ( ) const

Definition at line 68 of file triangle.cpp.

References _vertex_3.

◆ vertex_3() [2/2]

void geometric::triangle::vertex_3 ( const cartesian_point to_set)

Definition at line 74 of file triangle.cpp.

References _vertex_3.

Member Data Documentation

◆ _vertex_1

cartesian_point geometric::triangle::_vertex_1
protected

Definition at line 56 of file triangle.h.

Referenced by operator=(), side_1_2(), side_3_1(), and vertex_1().

◆ _vertex_2

cartesian_point geometric::triangle::_vertex_2
protected

Definition at line 57 of file triangle.h.

Referenced by operator=(), side_1_2(), side_2_3(), and vertex_2().

◆ _vertex_3

cartesian_point geometric::triangle::_vertex_3
protected

Definition at line 58 of file triangle.h.

Referenced by operator=(), side_2_3(), side_3_1(), and vertex_3().


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