Perform the cross product on a vector and a scalar. In 2D this produces a vector.
(a B2Vec2, s float64)
| 497 | /// Perform the cross product on a vector and a scalar. In 2D this produces |
| 498 | /// a vector. |
| 499 | func B2Vec2CrossVectorScalar(a B2Vec2, s float64) B2Vec2 { |
| 500 | return MakeB2Vec2(s*a.Y, -s*a.X) |
| 501 | } |
| 502 | |
| 503 | /// Perform the cross product on a scalar and a vector. In 2D this produces |
| 504 | /// a vector. |
no test coverage detected