ShishGL
1.0
A simple modular cross-platform graphics library
Segment2.hpp
Go to the documentation of this file.
1
/*============================================================================*/
2
#ifndef SHISHGL_SEGMENT2_HPP
3
#define SHISHGL_SEGMENT2_HPP
4
/*============================================================================*/
5
#include "
Vector2.hpp
"
6
/*============================================================================*/
7
namespace
Sh
{
8
9
template
<
typename
T>
10
struct
Segment2
{
11
12
Vector2<T>
begin
,
end
;
13
14
[[nodiscard]]
15
Vector2<T>
guide
()
const
{
16
return
end
-
begin
;
17
}
18
19
};
20
21
}
22
/*============================================================================*/
23
#endif //SHISHGL_SEGMENT2_HPP
24
/*============================================================================*/
Vector2.hpp
Sh::Vector2
Definition:
Vector2.hpp:8
Sh::Segment2::end
Vector2< T > end
Definition:
Segment2.hpp:12
Sh
Definition:
CoreApplication.hpp:10
Sh::Segment2::guide
Vector2< T > guide() const
Definition:
Segment2.hpp:15
Sh::Segment2::begin
Vector2< T > begin
Definition:
Segment2.hpp:12
Sh::Segment2
Definition:
Segment2.hpp:10
include
ShishGL
Core
Primitives
Segment2.hpp
Generated by
1.8.20