Add normalize node

This commit is contained in:
celyk 2025-07-06 18:52:18 +10:00
parent 3482c5b8a5
commit a337a52c1e

View file

@ -617,6 +617,11 @@ fn length(_: impl Ctx, vector: DVec2) -> f64 {
vector.length()
}
#[node_macro::node(category("Math: Vector"))]
fn normalize(_: impl Ctx, vector: DVec2) -> DVec2 {
vector.normalize()
}
#[cfg(test)]
mod test {
use super::*;