geometry
CrossProduct
compute the cross product of two directed segments
Calling Sequence
Parameters
Description
Examples
CrossProduct(dseg1, dseg2)
dseg1, dseg2
-
two directed segment
The cross product dseg1⁢X⁢dseg2 can be interpret as the signed area of the parallelogram formed by the point 0,0, dseg1, dseg2 and dseg1+dseg2.
Note that the tails of dseg1 and dseg2 must be the same.
The command with(geometry,CrossProduct) allows the use of the abbreviated form of this command.
with⁡geometry:
point⁡A,0,0,point⁡B,1,1,point⁡C,11,5:
dsegment⁡dseg1,A,B:dsegment⁡dseg2,A,C:
CrossProduct⁡dseg1,dseg2
−6
triangle⁡T,A,B,C
T
area⁡T
3
See Also
geometry[area]
geometry[dsegment]
geometry[point]
geometry[triangle]
Download Help Document