ViennaGrid for Python
 All Classes Files Functions Variables
Functions
spanned_volume.hpp File Reference

Implement calculation of volume spanned by a set of points. More...

#include "../points/cartesian.hpp"

Go to the source code of this file.

Functions

double LinearCartesian1D_spanned_volume (PointCartesian1D p1, PointCartesian1D p2)
 Calculate the spanned volume (length) of a line in the 1D cartesian space.
double LinearCartesian2D_spanned_volume (PointCartesian2D p1, PointCartesian2D p2)
 Calculate the spanned volume (length) of a line in the 2D cartesian space.
double LinearCartesian3D_spanned_volume (PointCartesian3D p1, PointCartesian3D p2)
 Calculate the spanned volume (length) of a line in the 3D cartesian space.
double TriangularCartesian2D_spanned_volume (PointCartesian2D p1, PointCartesian2D p2, PointCartesian2D p3)
 Calculate the spanned volume (surface) of a triangle in the 2D cartesian space.
double TriangularCartesian3D_spanned_volume (PointCartesian3D p1, PointCartesian3D p2, PointCartesian3D p3)
 Calculate the spanned volume (surface) of a triangle in the 3D cartesian space.
double TetrahedralCartesian3D_spanned_volume (PointCartesian3D p1, PointCartesian3D p2, PointCartesian3D p3, PointCartesian3D p4)
 Calculate the spanned volume (volume) of a tetrahedron in the 3D cartesian space.

Detailed Description

Implement calculation of volume spanned by a set of points.

This module provides the spanned_volume function for cartesian points. If you want to pass points that are not cartesian, you'll have to convert them to cartesian coordinates using the method to_cartesian.

Function Documentation

double LinearCartesian1D_spanned_volume ( PointCartesian1D  p1,
PointCartesian1D  p2 
)

Calculate the spanned volume (length) of a line in the 1D cartesian space.

Since
0.1.0
double LinearCartesian2D_spanned_volume ( PointCartesian2D  p1,
PointCartesian2D  p2 
)

Calculate the spanned volume (length) of a line in the 2D cartesian space.

Since
0.1.0
double LinearCartesian3D_spanned_volume ( PointCartesian3D  p1,
PointCartesian3D  p2 
)

Calculate the spanned volume (length) of a line in the 3D cartesian space.

Since
0.1.0
double TetrahedralCartesian3D_spanned_volume ( PointCartesian3D  p1,
PointCartesian3D  p2,
PointCartesian3D  p3,
PointCartesian3D  p4 
)

Calculate the spanned volume (volume) of a tetrahedron in the 3D cartesian space.

Since
0.1.0
double TriangularCartesian2D_spanned_volume ( PointCartesian2D  p1,
PointCartesian2D  p2,
PointCartesian2D  p3 
)

Calculate the spanned volume (surface) of a triangle in the 2D cartesian space.

Since
0.1.0
double TriangularCartesian3D_spanned_volume ( PointCartesian3D  p1,
PointCartesian3D  p2,
PointCartesian3D  p3 
)

Calculate the spanned volume (surface) of a triangle in the 3D cartesian space.

Since
0.1.0