Crates.io | ludomath |
lib.rs | ludomath |
version | 1.1.1 |
source | src |
created_at | 2017-04-05 23:17:56.735228 |
updated_at | 2017-08-02 14:52:22.704919 |
description | A math library for 2D games and graphics |
homepage | |
repository | https://github.com/CookieShade/ludomath |
max_upload_size | |
id | 9749 |
size | 77,856 |
A Rust library containing various math & number functions, primarily suited for 2D graphics & game programming. As such, it has an emphasis on speed, although admittedly doesn't currently do any explicit SIMD optimizations.
Includes functions, constants and traits for 2D vector math & transformations with matrices, cheap random number generation, as well as a few basic numeric functions.
In Cargo.toml
:
[depencencies]
ludomath = "1.1"
And in your Rust source:
extern crate ludomath;
use ludomath::vec2d::*;
fn main() {
let point = Point::new(2.0, 3.0);
println!("{:?}", point);
}
Copyright (c) 2017 Erik Bivrin
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. The License is included in the repository, named LICENSE.txt. You may also obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.