Stellarium  0.16.1
List of all members | Public Member Functions | Public Attributes
Line Class Reference

A simple line class, identified by a point and a direction vector. More...

#include <GeomMath.hpp>

+ Collaboration diagram for Line:

Public Member Functions

 Line (const Vec3f &p, const Vec3f &dir)
 Constructs a line given a start point and a direction vector. More...
 
Vec3f getPoint (float val)
 Gets the point that lies on the line according to the equation startPoint + val * direction. More...
 

Public Attributes

Vec3f startPoint
 
Vec3f endPoint
 Equals startPoint + direction. More...
 
Vec3f direction
 

Detailed Description

A simple line class, identified by a point and a direction vector.

Definition at line 99 of file GeomMath.hpp.

Constructor & Destructor Documentation

Line::Line ( const Vec3f p,
const Vec3f dir 
)

Constructs a line given a start point and a direction vector.

Member Function Documentation

Vec3f Line::getPoint ( float  val)

Gets the point that lies on the line according to the equation startPoint + val * direction.

Member Data Documentation

Vec3f Line::endPoint

Equals startPoint + direction.

Definition at line 107 of file GeomMath.hpp.


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