|
@@ -132,7 +132,7 @@
|
|
<param index="0" name="with" type="Vector2" />
|
|
<param index="0" name="with" type="Vector2" />
|
|
<description>
|
|
<description>
|
|
Returns the 2D analog of the cross product for this vector and [param with].
|
|
Returns the 2D analog of the cross product for this vector and [param with].
|
|
- 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.
|
|
|
|
|
|
+ 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. If the two vectors are parallel this returns zero, making it useful for testing if two vectors are parallel.
|
|
[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.
|
|
[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>
|
|
</description>
|
|
</method>
|
|
</method>
|