From d54586a8e6617e4e6bb070c97f4ee7a3744366cf Mon Sep 17 00:00:00 2001 From: Haoyu Qiu Date: Thu, 6 Jan 2022 00:15:22 +0800 Subject: Explain what 2D cross product means --- doc/classes/Vector2.xml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'doc/classes') diff --git a/doc/classes/Vector2.xml b/doc/classes/Vector2.xml index 6c39efd2f9..f593134557 100644 --- a/doc/classes/Vector2.xml +++ b/doc/classes/Vector2.xml @@ -110,7 +110,9 @@ - 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. -- cgit v1.2.3