ClanLib  2.3.7
Public Member Functions | Public Attributes | List of all members
CL_Line3x< Type > Class Template Reference

3D line More...

#include <line.h>

Inheritance diagram for CL_Line3x< Type >:
Inheritance graph
[legend]

Public Member Functions

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

Public Attributes

CL_Vec3< Type > p
 
CL_Vec3< Type > q
 

Detailed Description

template<typename Type>
class CL_Line3x< Type >

3D line

These line templates are defined for: int (CL_Line3), float (CL_Line3f), double (CL_Line3d)

Constructor & Destructor Documentation

template<typename Type>
CL_Line3x< Type >::CL_Line3x ( )
inline
template<typename Type>
CL_Line3x< Type >::CL_Line3x ( const CL_Line3x< Type > &  copy)
inline
template<typename Type>
CL_Line3x< Type >::CL_Line3x ( const CL_Vec3< Type > &  point_p,
const CL_Vec3< Type > &  point_q 
)
inline

Member Function Documentation

template<typename Type>
CL_Vec3<Type> CL_Line3x< Type >::get_intersection ( const CL_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 CL_Line3x< Type >::operator!= ( const CL_Line3x< Type > &  line) const
inline

!= operator.

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

= operator.

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

== operator.

Member Data Documentation

template<typename Type>
CL_Vec3<Type> CL_Line3x< Type >::p
template<typename Type>
CL_Vec3<Type> CL_Line3x< Type >::q

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