rustbatch 0.4.0

purely game dewelopment crate that offers simple but powerfull 2D rendering and some fast solutions for game world bottle necks
Documentation
use crate::Vect;

pub mod angle;
pub mod curve;
pub mod vect;
pub mod base;
pub mod rgba;
pub mod mat;
pub mod rect;
pub mod circle;
pub mod raycast;

/// Trait for implementing intersects method witch returns whether two geometric objects has at
/// least one common point
pub trait Intersection<T> {
    fn intersects(&self, o: &T) -> bool;
}

/// Trait for implementing intersects_points method witch returns one oer two intersection points of
/// two geometric objects
pub trait IntersectionPoints<T> {
    fn intersects_points(&self, o: &T) -> [Option<Vect>; 2];
}