Crates.io | feo-math |
lib.rs | feo-math |
version | 0.1.0 |
source | src |
created_at | 2022-02-04 19:01:37.063023 |
updated_at | 2022-02-04 19:01:37.063023 |
description | Math library for 3D transformation. |
homepage | |
repository | https://github.com/littleTitan/feo-math |
max_upload_size | |
id | 527004 |
size | 320,318 |
see also: feo-oop-engine
Feo Math is a library I created to help me learn linear algebra and spacial rotation. This is my own undertaking through and through.
Feo Math's intended purpose was to serve as the math library for the feo-oop-engine a 3D engine made with rust. It has no dependencies.
Within the crate there are the following useful modules:
linear_algebra
module, intended to support all matrix and vector arithmetic with square matrices and vectors 3 and 4 units long;rotation
module, intended to support the math behind spacial rotation;utils
module intended to support the added utility of a Space
.These modules all implement Construct
which ensures that certain mathematical operations can be performed on them all.
A space is an area in which objects, such as spaces or the vertices of a mesh, can exist. An issue with this visualization is however that the area itself is unlimited in size. If a space is translated, rotated, or scaled the objects within it do not change their position, rotation, or scaling relative to the space. Their position relative to the space containing that space however will change.
Spaces can also be joined to represent conversions between spaces.
Standard spaces include:
Worldspace : The space in which all objects exist without their own space and any spaces containing their own space.
Viewspace : The space the viewer perceives viewed objects in
Cameraspace : The position relative to the camera. NOT the viewspace.
Objectspace : every game-object has its own space
MIT License
Copyright (c) 2021 Lucas Ballmer
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.