nitro 0.9.1

A game engine built in Rust. This crate is no longer maintained.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
use nphysics2d;
use math::Vector;

pub type IntVector = nphysics2d::math::Vector<i32>;

pub trait IntVecConvert {
    fn to_vec(&self) -> Vector;
}

impl IntVecConvert for IntVector {
    fn to_vec(&self) -> Vector {
        Vector::new(self.x as f32, self.y as f32)
    }
}