DGtal 2.1.0
Loading...
Searching...
No Matches
TriangleByValue Struct Reference

Public Member Functions

 TriangleByValue (Point a, Point b, Point c)
 
double perimeter () const
 
 TriangleByValue (Point a, Point b, Point c)
 
double perimeter () const
 

Data Fields

Point _a
 
Point _b
 
Point _c
 

Detailed Description

Definition at line 394 of file testClone2.cpp.

Constructor & Destructor Documentation

◆ TriangleByValue() [1/2]

TriangleByValue::TriangleByValue ( Point  a,
Point  b,
Point  c 
)
inline

Definition at line 395 of file testClone2.cpp.

396 : _a( a ), _b( b ), _c( c ) {}

◆ TriangleByValue() [2/2]

TriangleByValue::TriangleByValue ( Point  a,
Point  b,
Point  c 
)
inline

Definition at line 198 of file testCloneAndAliases.cpp.

199 : _a( a ), _b( b ), _c( c ) {}

Member Function Documentation

◆ perimeter() [1/2]

double TriangleByValue::perimeter ( ) const
inline

Definition at line 397 of file testClone2.cpp.

398 {
399 return (_a - _b).norm() + (_b - _c).norm() + (_c - _a).norm();
400 }

References _a, _b, and _c.

◆ perimeter() [2/2]

double TriangleByValue::perimeter ( ) const
inline

Definition at line 200 of file testCloneAndAliases.cpp.

201 {
202 return (_a - _b).norm() + (_b - _c).norm() + (_c - _a).norm();
203 }

References _a, _b, and _c.

Field Documentation

◆ _a

Point TriangleByValue::_a

Definition at line 401 of file testClone2.cpp.

Referenced by perimeter().

◆ _b

Point TriangleByValue::_b

Definition at line 401 of file testClone2.cpp.

Referenced by perimeter().

◆ _c

Point TriangleByValue::_c

Definition at line 401 of file testClone2.cpp.

Referenced by perimeter().


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