Vector Cross Production - CSharp System

CSharp examples for System:Math Vector

Description

Vector Cross Production

Demo Code


using Microsoft.Xna.Framework;
using System;//w ww.j  a v a 2 s .  c  om

public class Main{
        public static float Cross(ref Vector2 a, ref Vector2 b)
        {
            return a.X * b.Y - a.Y * b.X;
        }
}

Related Tutorials