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

Public Member Functions

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

Data Fields

CowPtr< Point_a
CowPtr< Point_b
CowPtr< Point_c

Detailed Description

Definition at line 414 of file testClone2.cpp.

Constructor & Destructor Documentation

◆ TriangleByCloneAndCow()

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

Definition at line 415 of file testClone2.cpp.

416 : _a( a ), _b( b ), _c( c ) {}
CowPtr< Point > _b
CowPtr< Point > _a
CowPtr< Point > _c

References _a, _b, and _c.

Member Function Documentation

◆ perimeter()

double TriangleByCloneAndCow::perimeter ( ) const
inline

Definition at line 417 of file testClone2.cpp.

418 {
419 return (*_a - *_b).norm() + (*_b - *_c).norm() + (*_c - *_a).norm();
420 }

References _a, _b, and _c.

Field Documentation

◆ _a

CowPtr<Point> TriangleByCloneAndCow::_a

Definition at line 421 of file testClone2.cpp.

Referenced by perimeter(), and TriangleByCloneAndCow().

◆ _b

CowPtr<Point> TriangleByCloneAndCow::_b

Definition at line 421 of file testClone2.cpp.

Referenced by perimeter(), and TriangleByCloneAndCow().

◆ _c

CowPtr<Point> TriangleByCloneAndCow::_c

Definition at line 421 of file testClone2.cpp.

Referenced by perimeter(), and TriangleByCloneAndCow().


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