Track::Line Class Reference

A three dimensional line, half line, or line segment. More...

#include <Geometry.h>

List of all members.

Public Member Functions

 Line (btVector3 begin, btVector3 end)
 Line ()
btScalar closest_parametric (btVector3 point) const
 Find the closest point on the line segment to the given point.
btScalar closest_parametric_segment (btVector3 point) const
 Like closest_parametric but clamped to fit between the begining and the end point.
btVector3 closest_point_segment (btVector3 point) const
Plane get_plane_including (btVector3 vector) const
 Return a plane that contains the line and the direction of vector.

Protected Attributes

btVector3 m_begin
btVector3 m_end
btVector3 m_vector
 m_end - m_begin.
btScalar m_length2
 square of the length of m_vector.


Detailed Description

A three dimensional line, half line, or line segment.

Definition at line 79 of file Geometry.h.


Constructor & Destructor Documentation

Track::Line::Line ( btVector3  begin,
btVector3  end 
) [inline]

Definition at line 82 of file Geometry.h.

Track::Line::Line (  )  [inline]

Definition at line 89 of file Geometry.h.


Member Function Documentation

btScalar Track::Line::closest_parametric ( btVector3  point  )  const [inline]

Find the closest point on the line segment to the given point.

Parameters:
point The point to check.
Returns:
value indicating distance along line. 0 is the beginning, and 1 is the end of the line segment.

Definition at line 96 of file Geometry.h.

btScalar Track::Line::closest_parametric_segment ( btVector3  point  )  const [inline]

Like closest_parametric but clamped to fit between the begining and the end point.

Definition at line 103 of file Geometry.h.

btVector3 Track::Line::closest_point_segment ( btVector3  point  )  const [inline]

Definition at line 111 of file Geometry.h.

Plane Track::Line::get_plane_including ( btVector3  vector  )  const [inline]

Return a plane that contains the line and the direction of vector.

Definition at line 117 of file Geometry.h.


Member Data Documentation

btVector3 Track::Line::m_begin [protected]

Definition at line 125 of file Geometry.h.

btVector3 Track::Line::m_end [protected]

Definition at line 126 of file Geometry.h.

btScalar Track::Line::m_length2 [protected]

square of the length of m_vector.

Definition at line 130 of file Geometry.h.

btVector3 Track::Line::m_vector [protected]

m_end - m_begin.

Definition at line 128 of file Geometry.h.


The documentation for this class was generated from the following file:
Get Racer at SourceForge.net. Fast, secure and Free Open Source software downloads

Generated at Mon Sep 6 00:41:18 2010 by Doxygen version 1.4.7 for Racer version svn335.