Example #1
0
    public static Int3 Transform(Int3 point, Int3 forward, Int3 trans, Int3 scale)
    {
        Int3 up   = Int3.up;
        Int3 vInt = Int3.Cross(Int3.up, forward);

        return(IntMath.Transform(ref point, ref vInt, ref up, ref forward, ref trans, ref scale));
    }
Example #2
0
    public static Int3 Transform(Int3 point, Int3 forward, Int3 trans, Int3 scale)
    {
        Int3 up   = Int3.up;
        Int3 num2 = Int3.Cross(Int3.up, forward);

        return(Transform(ref point, ref num2, ref up, ref forward, ref trans, ref scale));
    }
Example #3
0
        static Direction()
        {
            crossCache = new Direction[byte.MaxValue + 1];

            foreach (Direction first in All)
            {
                foreach (Direction second in All)
                {
                    int  index = CrossIndex(first, second);
                    Int3 cross = Int3.Cross(first, second);
                    crossCache[index] = (Direction)cross;
                }
            }
        }