library of assembled shared sources

http://lass.cocamware.com

lass::spat::DefaultAabbRayTraits< AabbType, RayType > Struct Template Reference

#include <default_object_traits.h>

Inheritance diagram for lass::spat::DefaultAabbRayTraits< AabbType, RayType >:

Inheritance graph
[legend]

Public Types

enum  { dimension = TAabb::dimension }
typedef AabbType TAabb
 an nD AABB
typedef RayType TRay
 an nD Ray
typedef TAabb::TPoint TPoint
 an nD point
typedef TAabb::TVector TVector
 an nD vector
typedef TAabb::TValue TValue
 numerical type used in TPoint and TVector
typedef TAabb::TParam TParam
 best type for function parameters of TValue
typedef TAabb::TReference TReference
 reference to TValue
typedef TAabb::TConstReference TConstReference
 const reference to TValue

Static Public Member Functions

static const TAabb aabbEmpty ()
 return empty AABB
static const bool aabbContains (const TAabb &aabb, const TPoint &point)
 return true if AABB contains a point, return false otherwise
static const bool aabbContains (const TAabb &aabb, const TAabb &other)
static const bool aabbIntersect (const TAabb &aabb, const TRay &ray, TReference t, const TParam tMin)
 return true if AABB is intersected by ray
static const TAabb aabbJoin (const TAabb &a, const TAabb &b)
 join two AABBs and return the result
static const TPoint aabbMin (const TAabb &aabb)
 return the minimum corner of the AABB
static const TPoint aabbMax (const TAabb &aabb)
 return the maximum corner of the AABB
static const TPoint raySupport (const TRay &ray)
 return the support point of the ray
static const TVector rayDirection (const TRay &ray)
 return the direction vector of the ray
static const TValue coord (const TPoint &point, size_t axis)
 return the axis coordinate value of point.
static void coord (TPoint &point, size_t axis, TParam value)
 set the axis coordinate value of point.
static const TValue coord (const TVector &vector, size_t axis)
 return the axis component value of vector.
static void coord (TVector &vector, size_t axis, TParam value)
 set the axis component value of vector.
static const TVector vectorReciprocal (const TVector &vector)
 return the reciprocal vector of vector

Detailed Description

template<typename AabbType, typename RayType>
struct lass::spat::DefaultAabbRayTraits< AabbType, RayType >

Definition at line 66 of file default_object_traits.h.


Member Typedef Documentation

template<typename AabbType , typename RayType >
typedef AabbType lass::spat::DefaultAabbRayTraits< AabbType, RayType >::TAabb

template<typename AabbType , typename RayType >
typedef RayType lass::spat::DefaultAabbRayTraits< AabbType, RayType >::TRay

template<typename AabbType , typename RayType >
typedef TAabb::TPoint lass::spat::DefaultAabbRayTraits< AabbType, RayType >::TPoint

template<typename AabbType , typename RayType >
typedef TAabb::TVector lass::spat::DefaultAabbRayTraits< AabbType, RayType >::TVector

template<typename AabbType , typename RayType >
typedef TAabb::TValue lass::spat::DefaultAabbRayTraits< AabbType, RayType >::TValue

template<typename AabbType , typename RayType >
typedef TAabb::TParam lass::spat::DefaultAabbRayTraits< AabbType, RayType >::TParam

template<typename AabbType , typename RayType >
typedef TAabb::TReference lass::spat::DefaultAabbRayTraits< AabbType, RayType >::TReference

template<typename AabbType , typename RayType >
typedef TAabb::TConstReference lass::spat::DefaultAabbRayTraits< AabbType, RayType >::TConstReference


Member Enumeration Documentation

template<typename AabbType , typename RayType >
anonymous enum

Enumerator:
dimension 

Definition at line 78 of file default_object_traits.h.


Member Function Documentation

template<typename AabbType , typename RayType >
static const TAabb lass::spat::DefaultAabbRayTraits< AabbType, RayType >::aabbEmpty (  )  [inline, static]

return empty AABB

Definition at line 84 of file default_object_traits.h.

template<typename AabbType , typename RayType >
static const bool lass::spat::DefaultAabbRayTraits< AabbType, RayType >::aabbContains ( const TAabb aabb,
const TPoint point 
) [inline, static]

return true if AABB contains a point, return false otherwise

Definition at line 91 of file default_object_traits.h.

template<typename AabbType , typename RayType >
static const bool lass::spat::DefaultAabbRayTraits< AabbType, RayType >::aabbContains ( const TAabb aabb,
const TAabb other 
) [inline, static]

Definition at line 96 of file default_object_traits.h.

template<typename AabbType , typename RayType >
static const bool lass::spat::DefaultAabbRayTraits< AabbType, RayType >::aabbIntersect ( const TAabb aabb,
const TRay ray,
TReference  t,
const TParam  tMin 
) [inline, static]

return true if AABB is intersected by ray

Definition at line 103 of file default_object_traits.h.

template<typename AabbType , typename RayType >
static const TAabb lass::spat::DefaultAabbRayTraits< AabbType, RayType >::aabbJoin ( const TAabb a,
const TAabb b 
) [inline, static]

join two AABBs and return the result

Definition at line 110 of file default_object_traits.h.

template<typename AabbType , typename RayType >
static const TPoint lass::spat::DefaultAabbRayTraits< AabbType, RayType >::aabbMin ( const TAabb aabb  )  [inline, static]

return the minimum corner of the AABB

Definition at line 117 of file default_object_traits.h.

template<typename AabbType , typename RayType >
static const TPoint lass::spat::DefaultAabbRayTraits< AabbType, RayType >::aabbMax ( const TAabb aabb  )  [inline, static]

return the maximum corner of the AABB

Definition at line 124 of file default_object_traits.h.

template<typename AabbType , typename RayType >
static const TPoint lass::spat::DefaultAabbRayTraits< AabbType, RayType >::raySupport ( const TRay ray  )  [inline, static]

return the support point of the ray

Definition at line 134 of file default_object_traits.h.

template<typename AabbType , typename RayType >
static const TVector lass::spat::DefaultAabbRayTraits< AabbType, RayType >::rayDirection ( const TRay ray  )  [inline, static]

return the direction vector of the ray

Definition at line 141 of file default_object_traits.h.

template<typename AabbType , typename RayType >
static const TValue lass::spat::DefaultAabbRayTraits< AabbType, RayType >::coord ( const TPoint point,
size_t  axis 
) [inline, static]

return the axis coordinate value of point.

Definition at line 152 of file default_object_traits.h.

template<typename AabbType , typename RayType >
static void lass::spat::DefaultAabbRayTraits< AabbType, RayType >::coord ( TPoint point,
size_t  axis,
TParam  value 
) [inline, static]

set the axis coordinate value of point.

Definition at line 159 of file default_object_traits.h.

template<typename AabbType , typename RayType >
static const TValue lass::spat::DefaultAabbRayTraits< AabbType, RayType >::coord ( const TVector vector,
size_t  axis 
) [inline, static]

return the axis component value of vector.

Definition at line 166 of file default_object_traits.h.

template<typename AabbType , typename RayType >
static void lass::spat::DefaultAabbRayTraits< AabbType, RayType >::coord ( TVector vector,
size_t  axis,
TParam  value 
) [inline, static]

set the axis component value of vector.

Definition at line 173 of file default_object_traits.h.

template<typename AabbType , typename RayType >
static const TVector lass::spat::DefaultAabbRayTraits< AabbType, RayType >::vectorReciprocal ( const TVector vector  )  [inline, static]

return the reciprocal vector of vector

Definition at line 180 of file default_object_traits.h.


The documentation for this struct was generated from the following file:

Generated on Mon Nov 10 14:22:15 2008 for Library of Assembled Shared Sources by doxygen 1.5.7.1
SourceForge.net Logo