Example #1
0
        public Polygon GetPolygon(BoundingBoxAttachment attachment)
        {
            int index = BoundingBoxes.IndexOf(attachment);

            return(index == -1 ? null : Polygons.Items[index]);
        }
Example #2
0
        /** Returns true if the bounding box attachment contains the line segment. */
        public bool IntersectsSegment(BoundingBoxAttachment attachment, float x1, float y1, float x2, float y2)
        {
            int index = BoundingBoxes.IndexOf(attachment);

            return(index == -1 ? false : IntersectsSegment(index, x1, y1, x2, y2));
        }
Example #3
0
        public Polygon GetPolygon(BoundingBoxAttachment attachment)
        {
            int num = BoundingBoxes.IndexOf(attachment);

            return((num != -1) ? Polygons.Items[num] : null);
        }
Example #4
0
        /** Returns true if the bounding box attachment contains the point. The bounding box must be in the SkeletonBounds. */
        public bool containsPoint(BoundingBoxAttachment attachment, float x, float y)
        {
            int index = BoundingBoxes.IndexOf(attachment);

            return(index == -1 ? false : ContainsPoint(index, x, y));
        }