Ejemplo n.º 1
0
        public GlyphBone(GlyphBoneJoint a, EdgeLine tipEdge)
        {
            JointA  = a;
            TipEdge = tipEdge;
            Vector2 midPoint = tipEdge.GetMidPoint();

            _len = Math.Sqrt(a.CalculateSqrDistance(midPoint));
            EvaluateSlope();
        }
Ejemplo n.º 2
0
        public GlyphBone(GlyphBoneJoint a, GlyphBoneJoint b)
        {
#if DEBUG
            if (a == b)
            {
                throw new NotSupportedException();
            }
#endif

            JointA = a;
            JointB = b;
            Vector2 bpos = b.OriginalJointPos;
            _len = Math.Sqrt(a.CalculateSqrDistance(bpos));
            EvaluateSlope();
        }