Stellarium  0.17.0
Public Member Functions | Data Fields
Line Class Reference

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

#include <GeomMath.hpp>

Public Member Functions

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

Data Fields

Vec3f startPoint
 
Vec3f endPoint
 Equals startPoint + direction.
 
Vec3f direction