clan::Line3x< Type > Class Template Reference

3D line More...

#include <line.h>

Public Member Functions

 Line3x ()
 
 Line3x (const Line3x< Type > &copy)
 
 Line3x (const Vec3< Type > &point_p, const Vec3< Type > &point_q)
 
Vec3< Type > get_intersection (const Line3x< Type > &second, bool &intersect, Type range=(Type) 0.5) const
 Return the intersection of this and other line. More...
 
bool operator!= (const Line3x< Type > &line) const
 != operator. More...
 
Line3x< Type > & operator= (const Line3x< Type > &copy)
 = operator. More...
 
bool operator== (const Line3x< Type > &line) const
 == operator. More...
 

Public Attributes

Vec3< Type > p
 
Vec3< Type > q
 

Detailed Description

template<typename Type>
class clan::Line3x< Type >

3D line

These line templates are defined for: int (Line3), float (Line3f), double (Line3d)

Constructor & Destructor Documentation

template<typename Type>
clan::Line3x< Type >::Line3x ( )
inline
template<typename Type>
clan::Line3x< Type >::Line3x ( const Line3x< Type > &  copy)
inline
template<typename Type>
clan::Line3x< Type >::Line3x ( const Vec3< Type > &  point_p,
const Vec3< Type > &  point_q 
)
inline

Member Function Documentation

template<typename Type>
Vec3<Type> clan::Line3x< Type >::get_intersection ( const Line3x< Type > &  second,
bool &  intersect,
Type  range = (Type) 0.5 
) const

Return the intersection of this and other line.

Parameters
second= The second line to use
intersect= On Return: true if the lines intersect, false if the lines are parallel
range= Rounding error delta, to use to judge whether of not the lines intersect
Returns
The point
template<typename Type>
bool clan::Line3x< Type >::operator!= ( const Line3x< Type > &  line) const
inline

!= operator.

template<typename Type>
Line3x<Type>& clan::Line3x< Type >::operator= ( const Line3x< Type > &  copy)
inline

= operator.

template<typename Type>
bool clan::Line3x< Type >::operator== ( const Line3x< Type > &  line) const
inline

== operator.

Member Data Documentation


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