Exemple #1
0
    public static Vector6Int Normalize(Vector6Int a)
    {
        int Mag = Vector6Int.Magnitude(a);

        return(new Vector6Int(
                   a.largeRow / Mag,
                   a.largeColumn / Mag,
                   a.smallRow / Mag,
                   a.smallColumn / Mag,
                   a.wonBy / Mag,
                   a.valid / Mag));
    }
Exemple #2
0
 public static int SqrMagnitude(Vector6Int a)
 {
     return((int)Mathf.Pow(Vector6Int.Magnitude(a), 2));
 }