Skip to content

rudolfmuller/double-vec

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

30 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

duble-vec

Rust library for optimizing 2D vectors

WARNING: This library is primarily intended for our personal project. I just want to share it with you so you can test it and, if you like, give me some feedback (or even use it)

install: $ cargo add duble-vec.
documentation on: https://docs.rs/duble-vec/

Example

use duble_vec::*;

fn main() {
    let mut vec: DubleVec<i32> = DubleVec::new(Vec2 { x: 6, y: 5 }, 0);
    vec.assign(5, Vec2 { x: 1, y: 1 });
    if let Some(value) = vec.access(Index { x: 1, y: 1 }) {
        println!("Value: {}", value);
    } else {
        println!("No value at this index");
    }
    println!("Size: {}", vec.size());
    println!("{}", vec;);
}

About

Rust library for optimizing 2D vectors

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages