From 52ed512ff3180e280bc88734ca6c2179ee6eef5d Mon Sep 17 00:00:00 2001 From: Christoffer Lerno Date: Fri, 19 Jul 2024 11:39:06 +0200 Subject: [PATCH] Update docs on vector methods. --- src/content/docs/references/docs/vectors.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/content/docs/references/docs/vectors.md b/src/content/docs/references/docs/vectors.md index f7e0845..bd77315 100644 --- a/src/content/docs/references/docs/vectors.md +++ b/src/content/docs/references/docs/vectors.md @@ -40,16 +40,16 @@ int[<2>] f = 4; // f = { 4, 4 } ## Additional operations -The `std::math` module contains a wealth of additional operations available on vectors using dot-method syntax: +The `std::math` module contains a wealth of additional operations available on vectors using dot-method syntax. - `.sum()` - sum all vector elements. - `.product()` - multiply all vector elements. - `.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. -- `.distance(other)` - return the length of the difference of the two vectors. -- `.normalize()` - return a normalized vector. +- `.length(other)` - 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 "<" - `.comp_le(other)` - return a boolean vector with a component wise "<=" - `.comp_eq(other)` - return a boolean vector with a component wise "=="