StaticaddStaticangleStaticcloneStaticcreateStaticcrossStaticcross3StaticdivStaticdotStaticmagnitudeReturns the magnitude (length) of a vector.
The magnitude of the vector
StaticmagnitudeReturns the magnitude (length) of a vector (therefore saving a sqrt operation).
The squared magnitude of the vector
StaticmultStaticnegStaticnormaliseStaticperpStaticrotateStaticrotateStaticsub
The
Matter.Vectormodule contains methods for creating and manipulating vectors. Vectors are the basis of all the geometry related operations in the engine. AMatter.Vectorobject is of the form{ x: 0, y: 0 }.See the included usage examples.