Steppable
0.0.1
A CAS project written from scratch in C++
Loading...
Searching...
No Matches
include
types
point.hpp
1
/**************************************************************************************************
2
* Copyright (c) 2023-2025 NWSOFT *
3
* *
4
* Permission is hereby granted, free of charge, to any person obtaining a copy *
5
* of this software and associated documentation files (the "Software"), to deal *
6
* in the Software without restriction, including without limitation the rights *
7
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell *
8
* copies of the Software, and to permit persons to whom the Software is *
9
* furnished to do so, subject to the following conditions: *
10
* *
11
* The above copyright notice and this permission notice shall be included in all *
12
* copies or substantial portions of the Software. *
13
* *
14
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR *
15
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, *
16
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE *
17
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER *
18
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, *
19
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE *
20
* SOFTWARE. *
21
**************************************************************************************************/
22
23
#include <cstddef>
24
25
namespace
steppable
26
{
32
struct
XYPoint
33
{
34
size_t
x
= 0;
35
size_t
y
= 0;
36
};
37
43
struct
YXPoint
44
{
45
size_t
y
= 0;
46
size_t
x
= 0;
47
};
48
54
struct
YX2Points
55
{
56
size_t
y1
= 0;
57
size_t
x1
= 0;
58
size_t
y2
= 0;
59
size_t
x2
= 0;
60
};
61
}
// namespace steppable
steppable
The public namespace for the Steppable library.
Definition
argParse.cpp:40
steppable::XYPoint
A point object.
Definition
point.hpp:33
steppable::XYPoint::x
size_t x
Coordinate x.
Definition
point.hpp:34
steppable::XYPoint::y
size_t y
Coordinate y.
Definition
point.hpp:35
steppable::YX2Points
A points object that represents two points.
Definition
point.hpp:55
steppable::YX2Points::x2
size_t x2
Point 2 coordinate x.
Definition
point.hpp:59
steppable::YX2Points::y2
size_t y2
Point 2 coordinate y.
Definition
point.hpp:58
steppable::YX2Points::x1
size_t x1
Point 1 coordinate x.
Definition
point.hpp:57
steppable::YX2Points::y1
size_t y1
Point 1 coordinate y.
Definition
point.hpp:56
steppable::YXPoint
A point object.
Definition
point.hpp:44
steppable::YXPoint::y
size_t y
Coordinate y.
Definition
point.hpp:45
steppable::YXPoint::x
size_t x
Coordinate x.
Definition
point.hpp:46
Untitled