コード例 #1
0
 public Ellipse(Physics.Rect dimensions)
 {
     ellipsX      = (int)dimensions.x;
     ellipsY      = (int)dimensions.y;
     ellipsWidth  = (int)dimensions.width;
     ellipsHeight = (int)dimensions.height;
 }
コード例 #2
0
 public Triangle(Physics.Rect dimensions)
 {
     triX      = (int)dimensions.x;
     triY      = (int)dimensions.y;
     triWidth  = (int)dimensions.width;
     triHeight = (int)dimensions.height;
 }
コード例 #3
0
 public Rectangle(Physics.Rect dimensions)
 {
     rectX      = (int)dimensions.x;
     rectY      = (int)dimensions.y;
     rectWidth  = (int)dimensions.width;
     rectHeight = (int)dimensions.height;
 }