Esempio n. 1
0
        internal Joint(
            InsideEdgeLine p_contact_edge,
            InsideEdgeLine q_contact_edge)
        {
            //both p and q is INSIDE, contact edge
            _p_contact_edge = p_contact_edge;
            _q_contact_edge = q_contact_edge;
            //this is original x,y
            Vector2f midpos = p_contact_edge.GetMidPoint();

            _fitX = midpos.X;
            _fitY = midpos.Y;

#if DEBUG
            if (p_contact_edge._inside_joint != null ||
                q_contact_edge._inside_joint != null)
            {
                throw new System.NotSupportedException();
            }
#endif
            p_contact_edge._inside_joint = this;
            q_contact_edge._inside_joint = this;
        }