Compute the cross product.
where , and are the components of the vectors.
type(vector) :: pt(0:2)
pt(1) = 2 * ex
pt(2) = ex
pt(0) = pt(1).cross.pt(2)
print "(3(F3.1,1X))", abs(pt(0)%x), abs(pt(0)%y), abs(pt(0)%z)
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(vector), | intent(in) | :: | lhs | Left hand side. |
||
| type(vector), | intent(in) | :: | rhs | Right hand side. |
Cross product vector.