IMP logo
IMP Reference Guide  develop.7482b7c7af, 2026/12/05
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.
Floats get_edge_lengths () const
const Vector3D & get_point (unsigned int i) const
 Get the start=0/end=1 point of the segment.
void show (std::ostream &out=std::cout) const

Constructor & Destructor Documentation

◆ Triangle3D() [1/2]

IMP::algebra::Triangle3D::Triangle3D ( )

Definition at line 25 of file Triangle3D.h.

◆ Triangle3D() [2/2]

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

The passed points must not be colinear.

Member Function Documentation

◆ get_point()

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: