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::IntVector;

pub type Vector = nphysics2d::math::Vector<f32>;

pub trait VecConvert {
    fn to_int_vec(&self) -> IntVector;
}

impl VecConvert for Vector {
    fn to_int_vec(&self) -> IntVector {
        IntVector::new(self.x as i32, self.y as i32)
    }
}