Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion src/content/docs/Language Common/vectors.md
Original file line number Diff line number Diff line change
Expand Up @@ -47,9 +47,11 @@ 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).
- `.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 "=="
Expand Down