ludomath

Crates.ioludomath
lib.rsludomath
version1.1.1
sourcesrc
created_at2017-04-05 23:17:56.735228
updated_at2017-08-02 14:52:22.704919
descriptionA math library for 2D games and graphics
homepage
repositoryhttps://github.com/CookieShade/ludomath
max_upload_size
id9749
size77,856
(CookieShade)

documentation

https://docs.rs/ludomath

README

Ludomath

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.

Basic usage

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);
}

License

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.

Commit count: 20

cargo fmt