Steppable 0.0.1
A CAS project written from scratch in C++
Loading...
Searching...
No Matches
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
25namespace 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
The public namespace for the Steppable library.
Definition argParse.cpp:40
A point object.
Definition point.hpp:33
size_t x
Coordinate x.
Definition point.hpp:34
size_t y
Coordinate y.
Definition point.hpp:35
A points object that represents two points.
Definition point.hpp:55
size_t x2
Point 2 coordinate x.
Definition point.hpp:59
size_t y2
Point 2 coordinate y.
Definition point.hpp:58
size_t x1
Point 1 coordinate x.
Definition point.hpp:57
size_t y1
Point 1 coordinate y.
Definition point.hpp:56
A point object.
Definition point.hpp:44
size_t y
Coordinate y.
Definition point.hpp:45
size_t x
Coordinate x.
Definition point.hpp:46
Untitled