libdonut  2.3.2
Application framework for cross-platform game development in C++20
Public Attributes | List of all members
donut::LineSegment< L, T > Struct Template Reference

Generic line segment between two points. More...

#include <donut/shapes.hpp>

Public Attributes

Point< L, T > pointA
 Position of the first point of the line segment. More...
 
Point< L, T > pointB
 Position of the second point of the line segment. More...
 

Detailed Description

template<length_t L, typename T>
struct donut::LineSegment< L, T >

Generic line segment between two points.

Template Parameters
Lnumber of vector dimensions.
Tcomponent type for vector coordinates.

Member Data Documentation

◆ pointA

template<length_t L, typename T >
Point<L, T> donut::LineSegment< L, T >::pointA

Position of the first point of the line segment.

◆ pointB

template<length_t L, typename T >
Point<L, T> donut::LineSegment< L, T >::pointB

Position of the second point of the line segment.


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