Skip to content

Conversation

@Alex-Velez
Copy link
Contributor

Vector(2/3/4) have implementations for From<(f32, ..., f32)> but no algebraic operations for simple vector math.

Example:

let vector = Vector2::new(1.0, 2.0);

let easy = vector * (3.0, 4.0);

let annoying = Vector2 {
    x: vector.x * 3.0,
    y: vector.y * 4.0,
};

assert_eq(easy, annoying);

@IoIxD
Copy link
Contributor

IoIxD commented Mar 21, 2025

Active development now happens in raylib-rs/raylib-rs, feel free to open this there.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants