Viskores  1.0
Classes | Namespaces | Typedefs | Functions
Geometry.h File Reference
#include <viskores/VectorAnalysis.h>
#include <viskores/Geometry.hxx>

Go to the source code of this file.

Classes

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

Namespaces

 viskores
 Groups connected points that have the same field value.
 

Typedefs

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

Functions

template<typename CoordType , bool IsTwoSided>
viskores::Plane< CoordType > viskores::make_PlaneFromPointAndLine (const viskores::Vec< CoordType, 3 > &point, const viskores::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 >
viskores::Plane< CoordType > viskores::make_PlaneFromPointAndLineSegment (const viskores::Vec< CoordType, 3 > &point, const viskores::LineSegment3< CoordType > &segment, CoordType tol2=static_cast< CoordType >(1e-8f))
 
template<typename CoordType >
viskores::Circle< CoordType > viskores::make_CircleFrom3Points (const typename viskores::Vec< CoordType, 2 > &p0, const typename viskores::Vec< CoordType, 2 > &p1, const typename viskores::Vec< CoordType, 2 > &p2, CoordType tol=static_cast< CoordType >(1e-6f))
 Construct a circle from 3 points. More...
 
template<typename CoordType >
viskores::Sphere< CoordType, 3 > viskores::make_SphereFrom4Points (const viskores::Vec< CoordType, 3 > &a0, const viskores::Vec< CoordType, 3 > &a1, const viskores::Vec< CoordType, 3 > &a2, const viskores::Vec< CoordType, 3 > &a3, CoordType tol=static_cast< CoordType >(1e-6f))
 Construct a sphere from 4 points. More...