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 dseg1Xdseg2 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.
withgeometry:
pointA,0,0,pointB,1,1,pointC,11,5:
dsegmentdseg1,A,B:dsegmentdseg2,A,C:
CrossProductdseg1,dseg2
−6
triangleT,A,B,C
T
areaT
3
See Also
geometry[area]
geometry[dsegment]
geometry[point]
geometry[triangle]
Download Help Document