示例#1
0
        public void ScaleTo(Atom.Math.Vector2 factor)
        {
            var desc = this.FixtureDescription as IScaleable;

            if (desc != null)
            {
                desc.ScaleTo(factor);
                this.Generate();
            }
        }
示例#2
0
        public bool IntersectsAt(Atom.Math.Vector2 point)
        {
            var p = point.ToXna();

            for (int i = 0; i < this.fixtures.Count; ++i)
            {
                if (fixtures[i].TestPoint(ref p))
                {
                    return(true);
                }
            }

            return(false);
        }