Perform the cross product on a scalar and a vector. In 2D this produces a vector.
(s float64, a B2Vec2)
| 503 | /// Perform the cross product on a scalar and a vector. In 2D this produces |
| 504 | /// a vector. |
| 505 | func B2Vec2CrossScalarVector(s float64, a B2Vec2) B2Vec2 { |
| 506 | return MakeB2Vec2(-s*a.Y, s*a.X) |
| 507 | } |
| 508 | |
| 509 | /// Multiply a matrix times a vector. If a rotation matrix is provided, |
| 510 | /// then this transforms the vector from one frame to another. |
no test coverage detected