Explain what 2D cross product means

(cherry picked from commit d54586a8e6)
This commit is contained in:
Haoyu Qiu 2022-01-06 00:15:22 +08:00 committed by Rémi Verschelde
parent 99195cc163
commit fe1e6eb995
No known key found for this signature in database
GPG key ID: C3336907360768E1

View file

@ -86,7 +86,9 @@
<return type="float" />
<argument index="0" name="with" type="Vector2" />
<description>
Returns the cross product of this vector and [code]with[/code].
Returns the 2D analog of the cross product for this vector and [code]with[/code].
This is the signed area of the parallelogram formed by the two vectors. If the second vector is clockwise from the first vector, then the cross product is the positive area. If counter-clockwise, the cross product is the negative area.
[b]Note:[/b] Cross product is not defined in 2D mathematically. This method embeds the 2D vectors in the XY plane of 3D space and uses their cross product's Z component as the analog.
</description>
</method>
<method name="cubic_interpolate">