コード例 #1
0
        public JointReciprocal OrientCopy(Plane s, Plane t)
        {
            var r = new JointReciprocal(_pln);

            r.Orient(s, t);
            return(r);
        }
コード例 #2
0
        public static JointReciprocal[] OrientJointsByBaseTile(this JointReciprocal joint, Plane[] planes)
        {
            JointReciprocal[] joints = new JointReciprocal[planes.Length];

            for (int i = 0; i < joints.Length; i++)
            {
                JointReciprocal jointCopy = joint.Duplicate();
                jointCopy.Orient(jointCopy.pl, planes[i]);
                joints[i] = jointCopy;
            }

            return(joints);
        }
コード例 #3
0
        public static JointReciprocal[][] OrientJointsByBaseTile(this JointReciprocal joint, Plane[] p0, Plane[] p1)
        {
            JointReciprocal[][] joints = new JointReciprocal[p0.Length][];

            for (int i = 0; i < joints.Length; i++)
            {
                JointReciprocal jointCopy0 = joint.Duplicate();
                jointCopy0.Orient(jointCopy0.pl, p0[i]);
                JointReciprocal jointCopy1 = joint.Duplicate();
                jointCopy1.Orient(jointCopy1.pl, p1[i]);
                joints[i] = new JointReciprocal[] { jointCopy0, jointCopy1 };
            }

            return(joints);
        }