DGtal 2.0.0
Loading...
Searching...
No Matches
TriangleByClone Struct Reference

Public Member Functions

 TriangleByClone (Clone< Point > a, Clone< Point > b, Clone< Point > c)
double perimeter () const
 TriangleByClone (Clone< Point > a, Clone< Point > b, Clone< Point > c)
double perimeter () const

Data Fields

Point _a
Point _b
Point _c

Detailed Description

Definition at line 404 of file testClone2.cpp.

Constructor & Destructor Documentation

◆ TriangleByClone() [1/2]

TriangleByClone::TriangleByClone ( Clone< Point > a,
Clone< Point > b,
Clone< Point > c )
inline

Definition at line 405 of file testClone2.cpp.

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

References _a, _b, and _c.

◆ TriangleByClone() [2/2]

TriangleByClone::TriangleByClone ( Clone< Point > a,
Clone< Point > b,
Clone< Point > c )
inline

Definition at line 208 of file testCloneAndAliases.cpp.

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

References _a, _b, and _c.

Member Function Documentation

◆ perimeter() [1/2]

double TriangleByClone::perimeter ( ) const
inline

Definition at line 407 of file testClone2.cpp.

408 {
409 return (_a - _b).norm() + (_b - _c).norm() + (_c - _a).norm();
410 }

References _a, _b, and _c.

◆ perimeter() [2/2]

double TriangleByClone::perimeter ( ) const
inline

Definition at line 210 of file testCloneAndAliases.cpp.

211 {
212 return (_a - _b).norm() + (_b - _c).norm() + (_c - _a).norm();
213 }

References _a, _b, and _c.

Field Documentation

◆ _a

Point TriangleByClone::_a

Definition at line 411 of file testClone2.cpp.

Referenced by perimeter(), and TriangleByClone().

◆ _b

Point TriangleByClone::_b

Definition at line 411 of file testClone2.cpp.

Referenced by perimeter(), and TriangleByClone().

◆ _c

Point TriangleByClone::_c

Definition at line 411 of file testClone2.cpp.

Referenced by perimeter(), and TriangleByClone().


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