From 7def50cbf0b93d627c0fa44a3cb6b00f10ecd41e Mon Sep 17 00:00:00 2001 From: Lily Iliana Luna Ylva Anderson Grigaitis Date: Sat, 23 Aug 2025 18:13:34 -0500 Subject: [PATCH] Basic read me and added copy of MIT License to cga.rs --- Readme.md | 5 +++++ src/cga.rs | 23 +++++++++++++++++++++++ 2 files changed, 28 insertions(+) create mode 100644 Readme.md diff --git a/Readme.md b/Readme.md new file mode 100644 index 0000000..bd054c4 --- /dev/null +++ b/Readme.md @@ -0,0 +1,5 @@ +This is a project to create a game of Asteroids set in hyperbolic space, using Conformal Geometric Algebra to do the calculations. This is partially a learning project and partially to make a fun game. + +The CGA library used in this project is from [ganja.js](https://github.com/enkimute/ganja.js), and is licensed under the MIT License. The sourced version is permalinked [here](https://github.com/enkimute/ganja.js/blob/6e97cb45d780cd7c661d9240f1610eb005707417/codegen/rust/cga.rs). Minor modifications have been added, mainly to eliminate rust warnings. + +All code that is original to this project may be licensed under the terms of the GPLv3 License. diff --git a/src/cga.rs b/src/cga.rs index 1b74075..cf7f102 100644 --- a/src/cga.rs +++ b/src/cga.rs @@ -2,6 +2,29 @@ //Original at: //https://github.com/enkimute/ganja.js/blob/6e97cb45d780cd7c661d9240f1610eb005707417/codegen/rust/cga.rs +/* MIT License + +Copyright (c) 2017 Steven De Keninck + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. +*/ + // 3D Projective Geometric Algebra // Written by a generator written by enki. #![allow(unused_imports)]