nanos world API Reference Unofficial documentation
Function Shared Bleeding edge only

Vector2D.Cross

Returns the cross product between this vector and another vector, which for 2D vectors is a scalar value

Syntax

Lua
my_vector2_d:Cross(other)

Parameters

Name Type Default Description
other Vector2D The vector to cross with

Returns

  • number the cross product