neoGFX
Cross-platform C++ app/game engine
Loading...
Searching...
No Matches
neogfx::basic_line< CoordinateType > Class Template Reference

#include <geometrical.hpp>

Public Member Functions

 basic_line (const point_type &a, const point_type &b)
 
template<typename CoordinateType2 >
 basic_line (const basic_line< CoordinateType2 > &other)
 
bool operator== (const basic_line &other) const
 
bool operator!= (const basic_line &other) const
 
basic_line from (const point_type &a) const
 
coordinate_type delta_x () const
 
coordinate_type delta_y () const
 
bool is_vertex (const point_type &v) const
 
bool within_bounding_rect (const point_type &p) const
 
bool intersection (const line &other, point &pointOfIntersection) const
 

Public Attributes

point_type a
 
point_type b
 

Detailed Description

template<typename CoordinateType>
class neogfx::basic_line< CoordinateType >

Definition at line 1161 of file geometrical.hpp.

Constructor & Destructor Documentation

◆ basic_line() [1/2]

template<typename CoordinateType >
neogfx::basic_line< CoordinateType >::basic_line ( const point_type a,
const point_type b 
)
inline

Definition at line 1171 of file geometrical.hpp.

◆ basic_line() [2/2]

template<typename CoordinateType >
template<typename CoordinateType2 >
neogfx::basic_line< CoordinateType >::basic_line ( const basic_line< CoordinateType2 > &  other)
inline

Definition at line 1173 of file geometrical.hpp.

Member Function Documentation

◆ delta_x()

template<typename CoordinateType >
coordinate_type neogfx::basic_line< CoordinateType >::delta_x ( ) const
inline

Definition at line 1186 of file geometrical.hpp.

◆ delta_y()

template<typename CoordinateType >
coordinate_type neogfx::basic_line< CoordinateType >::delta_y ( ) const
inline

Definition at line 1187 of file geometrical.hpp.

◆ from()

template<typename CoordinateType >
basic_line neogfx::basic_line< CoordinateType >::from ( const point_type a) const
inline

Definition at line 1179 of file geometrical.hpp.

◆ intersection()

template<typename CoordinateType >
bool neogfx::basic_line< CoordinateType >::intersection ( const line &  other,
point pointOfIntersection 
) const
inline

Definition at line 1194 of file geometrical.hpp.

◆ is_vertex()

template<typename CoordinateType >
bool neogfx::basic_line< CoordinateType >::is_vertex ( const point_type v) const
inline

Definition at line 1188 of file geometrical.hpp.

◆ operator!=()

template<typename CoordinateType >
bool neogfx::basic_line< CoordinateType >::operator!= ( const basic_line< CoordinateType > &  other) const
inline

Definition at line 1178 of file geometrical.hpp.

◆ operator==()

template<typename CoordinateType >
bool neogfx::basic_line< CoordinateType >::operator== ( const basic_line< CoordinateType > &  other) const
inline

Definition at line 1177 of file geometrical.hpp.

◆ within_bounding_rect()

template<typename CoordinateType >
bool neogfx::basic_line< CoordinateType >::within_bounding_rect ( const point_type p) const
inline

Definition at line 1189 of file geometrical.hpp.

Member Data Documentation

◆ a

template<typename CoordinateType >
point_type neogfx::basic_line< CoordinateType >::a

Definition at line 1237 of file geometrical.hpp.

◆ b

template<typename CoordinateType >
point_type neogfx::basic_line< CoordinateType >::b

Definition at line 1238 of file geometrical.hpp.


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