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. |
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
.
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 TetrahedralCartesian3D_spanned_volume | ( | PointCartesian3D | p1, |
PointCartesian3D | p2, | ||
PointCartesian3D | p3, | ||
PointCartesian3D | p4 | ||
) |
Calculate the spanned volume (volume) of a tetrahedron 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.