You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/_classes/vec2d/vec2d.md
+2-2
Original file line number
Diff line number
Diff line change
@@ -4,7 +4,7 @@ title: "Vec2D"
4
4
permalink: /classes/vec2d/
5
5
---
6
6
7
-
The Vec2D class is a direct replacement for processings PVector class (when used for 2D work, see Vec3D for 3D version).
7
+
The Vec2D class is a direct replacement for processings PVector class (when used for 2D work, see Vec3D for 3D version). Recently cross product is deprecated in favor of the more correct wedge `^` product
8
8
9
9
### Methods:-
10
10
```ruby
@@ -15,7 +15,7 @@ a / b # where a is instance of Vec2D and b is a scalar
15
15
a == b # where both a and b are both instances of Vec2D
16
16
a.angle_between(b) # where both a and b are both instances of Vec2D
17
17
a.copy # where a is instance of Vec2D returns a deep copy
18
-
a.cross(b) # where both a and b are both instances of Vec2D
18
+
a^ b # wedge product where both a and b are both instances of Vec2D
19
19
a.dist(b) # where both a and b are both instances of Vec2D
20
20
a.dot(b) # where both a and b are both instances of Vec2D
0 commit comments