3 stable releases

Uses old Rust 2015

1.1.1 Jun 6, 2017
1.1.0 Jun 5, 2017
1.0.0 Apr 5, 2017

#1698 in Math

Apache-2.0

67KB
1.5K SLoC

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.

Dependencies

~320–540KB