VTK-m  2.0
Classes | Namespaces | Typedefs | Functions
Geometry.h File Reference
#include <vtkm/VectorAnalysis.h>
#include <vtkm/Geometry.hxx>

Go to the source code of this file.

Classes

struct  vtkm::Ray< CoordType, Dim, IsTwoSided >
 Represent an infinite or semi-infinite line segment with a point and a direction. More...
 
struct  vtkm::LineSegment< CoordType, Dim >
 Represent a finite line segment with a pair of points. More...
 
class  vtkm::Plane
 Represent a plane with a base point (origin) and normal vector. More...
 
class  vtkm::Sphere
 Represent a sphere of the given Dimension. More...
 
struct  vtkm::Ray< CoordType, Dim, IsTwoSided >
 Represent an infinite or semi-infinite line segment with a point and a direction. More...
 
struct  vtkm::LineSegment< CoordType, Dim >
 Represent a finite line segment with a pair of points. More...
 
class  vtkm::Plane
 Represent a plane with a base point (origin) and normal vector. More...
 
class  vtkm::Sphere
 Represent a sphere of the given Dimension. More...
 

Namespaces

 vtkm
 Groups connected points that have the same field value.
 

Typedefs

template<typename CoordType , int Dim = 3>
using vtkm::Line = Ray< CoordType, Dim, true >
 Lines are two-sided rays: More...
 
template<typename CoordType >
using vtkm::Ray2 = Ray< CoordType, 2 >
 
template<typename CoordType >
using vtkm::Ray3 = Ray< CoordType, 3 >
 
template<typename CoordType >
using vtkm::Line2 = Line< CoordType, 2 >
 
template<typename CoordType >
using vtkm::Line3 = Line< CoordType, 3 >
 
template<typename CoordType >
using vtkm::LineSegment2 = LineSegment< CoordType, 2 >
 
template<typename CoordType >
using vtkm::LineSegment3 = LineSegment< CoordType, 3 >
 
template<typename T >
using vtkm::Circle = Sphere< T, 2 >
 Circle is an alias for a 2-Dimensional sphere. More...
 
template<typename T >
using vtkm::Sphere2 = Sphere< T, 2 >
 
template<typename T >
using vtkm::Sphere3 = Sphere< T, 3 >
 
using vtkm::Ray2d = Ray2< vtkm::FloatDefault >
 
using vtkm::Ray3d = Ray3< vtkm::FloatDefault >
 
using vtkm::Line2d = Line2< vtkm::FloatDefault >
 
using vtkm::Line3d = Line3< vtkm::FloatDefault >
 
using vtkm::LineSegment2d = LineSegment2< vtkm::FloatDefault >
 
using vtkm::LineSegment3d = LineSegment3< vtkm::FloatDefault >
 
using vtkm::Plane3d = Plane< vtkm::FloatDefault >
 
using vtkm::Circle2d = Circle< vtkm::FloatDefault >
 
using vtkm::Sphere2d = Sphere2< vtkm::FloatDefault >
 
using vtkm::Sphere3d = Sphere3< vtkm::FloatDefault >
 

Functions

template<typename CoordType , bool IsTwoSided>
VTKM_EXEC_CONT vtkm::Plane< CoordType > vtkm::make_PlaneFromPointAndLine (const vtkm::Vec< CoordType, 3 > &point, const vtkm::Ray< CoordType, 3, IsTwoSided > &ray, CoordType tol2=static_cast< CoordType >(1e-8f))
 Construct a plane from a point plus one of: a line, a ray, or a line segment. More...
 
template<typename CoordType >
VTKM_EXEC_CONT vtkm::Plane< CoordType > vtkm::make_PlaneFromPointAndLineSegment (const vtkm::Vec< CoordType, 3 > &point, const vtkm::LineSegment3< CoordType > &segment, CoordType tol2=static_cast< CoordType >(1e-8f))
 
template<typename CoordType >
VTKM_EXEC_CONT vtkm::Circle< CoordType > vtkm::make_CircleFrom3Points (const typename vtkm::Vec< CoordType, 2 > &p0, const typename vtkm::Vec< CoordType, 2 > &p1, const typename vtkm::Vec< CoordType, 2 > &p2, CoordType tol=static_cast< CoordType >(1e-6f))
 Construct a circle from 3 points. More...
 
template<typename CoordType >
VTKM_EXEC_CONT vtkm::Sphere< CoordType, 3 > vtkm::make_SphereFrom4Points (const vtkm::Vec< CoordType, 3 > &a0, const vtkm::Vec< CoordType, 3 > &a1, const vtkm::Vec< CoordType, 3 > &a2, const vtkm::Vec< CoordType, 3 > &a3, CoordType tol=static_cast< CoordType >(1e-6f))
 Construct a sphere from 4 points. More...