Skip to content

Commit 45a1012

Browse files
authored
added lerp and reflect to vectors + remove other from length (#168)
* remove other from length * add lerp and reflect
1 parent ff00b4e commit 45a1012

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/content/docs/Language Common/vectors.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,9 +47,11 @@ The `std::math` module contains a wealth of additional operations available on v
4747
- `.max()` - get the maximum element.
4848
- `.min()` - get the minimum element.
4949
- `.dot(other)` - return the dot product with the other vector.
50-
- `.length(other)` - return the square root of the dot product (not available on integer vectors).
50+
- `.length()` - return the square root of the dot product (not available on integer vectors).
5151
- `.distance(other)` - return the length of the difference of the two vectors (not available on integer vectors).
5252
- `.normalize()` - return a normalized vector (not available on integer vectors).
53+
- `.lerp(other, t)` - linearly interpolate toward other by t.
54+
- `.reflect(other)` - reflect vector about other (assumes other is normalized).
5355
- `.comp_lt(other)` - return a boolean vector with a component wise "<"
5456
- `.comp_le(other)` - return a boolean vector with a component wise "<="
5557
- `.comp_eq(other)` - return a boolean vector with a component wise "=="

0 commit comments

Comments
 (0)