Skip to content

Latest commit

 

History

History
22 lines (15 loc) · 432 Bytes

README.md

File metadata and controls

22 lines (15 loc) · 432 Bytes

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);
}