Skip to content

Commit a6fcaf9

Browse files
LyeZinhoCopilot
andauthored
Apply suggestion from @Copilot
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
1 parent b13753b commit a6fcaf9

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

docs/math/vectors.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,10 @@ f32 length = velocity.length();
3131
### Vec3
3232
```cpp
3333
Caffeine::Vec3 pos(1.0f, 2.0f, 3.0f);
34-
Caffeine::Vec3 cross = Caffeine::Vec3::cross(up, right);
35-
f32 dot = Caffeine::Vec3::dot(a, b);
34+
Caffeine::Vec3 up(0.0f, 1.0f, 0.0f);
35+
Caffeine::Vec3 right(1.0f, 0.0f, 0.0f);
36+
Caffeine::Vec3 cross = up.cross(right);
37+
Caffeine::f32 dot = up.dot(right);
3638
```
3739

3840
### Vec4

0 commit comments

Comments
 (0)