gamevecs 1.0.0

A library that provides 2d and 3d vectors specifically for game developement
Documentation
  • Coverage
  • 25%
    2 out of 8 items documented0 out of 0 items with examples
  • Size
  • Source code size: 25.75 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 1.33 MB This is the summed size of all files generated by rustdoc for all configured targets
  • Links
  • nobschulth/gamevecs
    1 0 0
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • nobschulth

Gamevecs

Gamevecs is a library that provides 2d and 3d vectors for game developement in rust. The vectors have common functionality like cross/dot product, lerping, etc. .

Examples

use gamevecs::Vec2;

fn main() {
	//create 2 2D vectors
	let vec1 = Vec2::new(0.0, 10.0);
	let vec2 = Vec2::new(10.0, 0.0);
	
	//add them together
	let result = vec1 + vec2;
	
	//print the result (10.0, 10.0)
	println!(result);
}