From ace7384750ec5726c8c912a089f15224698ccb4c Mon Sep 17 00:00:00 2001 From: any1here <225423344+any1here@users.noreply.github.com> Date: Wed, 1 Oct 2025 19:36:45 +0200 Subject: [PATCH 1/2] remove other from length --- src/content/docs/Language Common/vectors.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/content/docs/Language Common/vectors.md b/src/content/docs/Language Common/vectors.md index 8c4fcd62..e11f8348 100644 --- a/src/content/docs/Language Common/vectors.md +++ b/src/content/docs/Language Common/vectors.md @@ -47,7 +47,7 @@ The `std::math` module contains a wealth of additional operations available on v - `.max()` - get the maximum element. - `.min()` - get the minimum element. - `.dot(other)` - return the dot product with the other vector. -- `.length(other)` - return the square root of the dot product (not available on integer vectors). +- `.length()` - return the square root of the dot product (not available on integer vectors). - `.distance(other)` - return the length of the difference of the two vectors (not available on integer vectors). - `.normalize()` - return a normalized vector (not available on integer vectors). - `.comp_lt(other)` - return a boolean vector with a component wise "<" From ff4815f9a8f64c1302fd740428db30b5ce753507 Mon Sep 17 00:00:00 2001 From: any1here <225423344+any1here@users.noreply.github.com> Date: Wed, 1 Oct 2025 20:23:33 +0200 Subject: [PATCH 2/2] add lerp and reflect --- src/content/docs/Language Common/vectors.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/content/docs/Language Common/vectors.md b/src/content/docs/Language Common/vectors.md index e11f8348..af6d1fe2 100644 --- a/src/content/docs/Language Common/vectors.md +++ b/src/content/docs/Language Common/vectors.md @@ -50,6 +50,8 @@ The `std::math` module contains a wealth of additional operations available on v - `.length()` - return the square root of the dot product (not available on integer vectors). - `.distance(other)` - return the length of the difference of the two vectors (not available on integer vectors). - `.normalize()` - return a normalized vector (not available on integer vectors). +- `.lerp(other, t)` - linearly interpolate toward other by t. +- `.reflect(other)` - reflect vector about other (assumes other is normalized). - `.comp_lt(other)` - return a boolean vector with a component wise "<" - `.comp_le(other)` - return a boolean vector with a component wise "<=" - `.comp_eq(other)` - return a boolean vector with a component wise "=="