Pathfinder
Public Member Functions | Public Attributes | List of all members
Pathfinder::Line3 Struct Reference

This struct represents a 3D line of the form u = v + rw. More...

#include <Line3.h>

Inheritance diagram for Pathfinder::Line3:
Collaboration diagram for Pathfinder::Line3:

Public Member Functions

Geometry::Vec3 eval (const float &r)
 Evaluate the line function for a given r. More...
 

Public Attributes

Geometry::Vec3 v
 The support vector. More...
 
Geometry::Vec3 w
 The direction vector. More...
 

Detailed Description

This struct represents a 3D line of the form u = v + rw.

Member Function Documentation

◆ eval()

Geometry::Vec3 Pathfinder::Line3::eval ( const float &  r)

Evaluate the line function for a given r.

Given an r, scale the direction vector by r and add the support vector to the result. The resulting vector is the corresponding point to r in respect to this line.

Parameters
rThe modifier for the direction vector.
Returns
Return the resulting vector pointing to a point on the line.

Member Data Documentation

◆ v

Geometry::Vec3 Pathfinder::Line3::v

The support vector.

◆ w

Geometry::Vec3 Pathfinder::Line3::w

The direction vector.


The documentation for this struct was generated from the following files: