ludomath 1.1.1

A math library for 2D games and graphics
Documentation
  • Coverage
  • 100%
    166 out of 166 items documented0 out of 132 items with examples
  • Size
  • Source code size: 79.76 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 5.77 MB This is the summed size of all files generated by rustdoc for all configured targets
  • Ø build duration
  • this release: 15s Average build duration of successful builds.
  • all releases: 15s Average build duration of successful builds in releases after 2024-10-23.
  • Links
  • CookieShade/ludomath
    2 0 0
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • CookieShade

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.