IMP logo
IMP Reference Guide  2.16.0
The Integrative Modeling Platform
IMP::algebra::Triangle3D Class Reference

Represent a triangle in 3D. More...

#include <IMP/algebra/Triangle3D.h>

+ Inheritance diagram for IMP::algebra::Triangle3D:

Detailed Description

Represent a triangle in 3D.

See geometric primitives for more information.

Definition at line 23 of file Triangle3D.h.

Public Member Functions

 Triangle3D (const Vector3D &p1, const Vector3D &p2, const Vector3D &p3)
 The passed points must not be colinear. More...
 
Floats get_edge_lengths () const
 
const Vector3Dget_point (unsigned int i) const
 Get the start=0/end=1 point of the segment. More...
 
void show (std::ostream &out=std::cout) const
 

Constructor & Destructor Documentation

IMP::algebra::Triangle3D::Triangle3D ( const Vector3D p1,
const Vector3D p2,
const Vector3D p3 
)

The passed points must not be colinear.

Member Function Documentation

const Vector3D& IMP::algebra::Triangle3D::get_point ( unsigned int  i) const

Get the start=0/end=1 point of the segment.

Definition at line 29 of file Triangle3D.h.


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