Table of Contents

Method Cross

Namespace
Pinwheel.Vista.Geometric
Assembly
Pinwheel.Vista.Runtime.dll

Cross(Vector2, Vector2)

Returns the 2D scalar cross product of two vectors.

public static float Cross(Vector2 lhs, Vector2 rhs)

Parameters

lhs Vector2

The left-hand vector.

rhs Vector2

The right-hand vector.

Returns

float

The signed scalar cross-product value. Its sign encodes relative winding direction and its magnitude encodes the parallelogram area formed by the two vectors.