Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/potatomaster101/point
Simple coordinates
https://github.com/potatomaster101/point
coordinates cpp14 mathematics mit-license point
Last synced: about 1 month ago
JSON representation
Simple coordinates
- Host: GitHub
- URL: https://github.com/potatomaster101/point
- Owner: PotatoMaster101
- License: mit
- Created: 2019-08-24T02:39:50.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2020-02-16T13:50:14.000Z (almost 5 years ago)
- Last Synced: 2024-11-08T16:29:56.389Z (3 months ago)
- Topics: coordinates, cpp14, mathematics, mit-license, point
- Language: C++
- Homepage:
- Size: 1.95 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Point
Simple mathematical point representation in C++14.# Compile
Compile with flag `-std=c++14` or `-std=c++17`.# Example
```cpp
constexpr auto a = make_point3(7, 8, 9);
constexpr auto b = make_point3(1, 2, 3);
constexpr auto c = a + b;
constexpr auto d = a * 9;
std::cout << c[0] << " " << c[1] << " " << c[2] << std::endl;
std::cout << d[0] << " " << d[1] << " " << d[2] << std::endl;
```