示例#1
0
        public Vector6 Local2Local(Transform fromT, Transform toT)
        {
            var tV = new Vector6();

            for (int i = 0; i < 3; i++)
            {
                tV.Add(toT.InverseTransformDirection(fromT.TransformDirection(negative.Component(i))));
                tV.Add(toT.InverseTransformDirection(fromT.TransformDirection(positive.Component(i))));
            }
            return(tV);
        }
示例#2
0
        public Vector6 InverseTransform(Transform T)
        {
            var tV = new Vector6();

            for (int i = 0; i < 3; i++)
            {
                tV.Add(T.InverseTransformDirection(negative.Component(i)));
                tV.Add(T.InverseTransformDirection(positive.Component(i)));
            }
            return(tV);
        }