Gamedev Framework (gf) 1.2.0
A C++17 framework for 2D games
Public Attributes | List of all members
gf::Segment< T > Struct Template Reference

A segment with two points. More...

#include <gf/GeometryTypes.h>

Public Attributes

Vector< T, 2 > p0
 First end point of the segment. More...
 
Vector< T, 2 > p1
 Second end point of the segment. More...
 

Detailed Description

template<typename T>
struct gf::Segment< T >

A segment with two points.

Member Data Documentation

◆ p0

template<typename T >
Vector<T, 2> gf::Segment< T >::p0

First end point of the segment.

◆ p1

template<typename T >
Vector<T, 2> gf::Segment< T >::p1

Second end point of the segment.