메소드 | 설명 | |
---|---|---|
Add ( |
Computes the union of this rectangle and the passed rectangle, storing the result in this rectangle.
|
|
CompareTo ( object o ) : int | ||
Contains ( |
Determine whether this rectangle contains the passed rectangle
|
|
Distance ( System.Point p ) : double |
Return the distance between this rectangle and the passed point. If the rectangle contains the point, the distance is zero.
|
|
Distance ( |
Return the distance between this rectangle and the passed rectangle. If the rectangles overlap, the distance is zero.
|
|
Enlargement ( |
Calculate the area by which this rectangle would be enlarged if added to the passed rectangle. Neither rectangle is altered.
|
|
Equals ( |
||
GetHashCode ( ) : int |
Customized hash code using the coordinates of the rectangle 37 * minX * minY * maxX * maxY
|
|
Intersects ( |
Determine whether this rectangle intersects the passed rectangle
|
|
Rectangle ( double x1, double y1, double x2, double y2 ) : System |
|
|
ToString ( ) : string |
Return a string representation of this rectangle, in the form: (1.2, 3.4), (5.6, 7.8)
|
|
add ( System.Point p ) : void |
Computes the union of this rectangle and the passed point, storing the result in this rectangle.
|
|
containedBy ( |
Determine whether this rectangle is contained by the passed rectangle
|
|
distance ( double pX, double pY ) : double |
Return the distance between a rectangle and a point. If the rectangle contains the point, the distance is zero.
|
|
distanceSq ( double pX, double pY ) : double |
Get the square of the distance between two points.
|
|
edgeOverlaps ( |
Determine whether an edge of this rectangle overlies the equivalent edge of the passed rectangle
|
|
enlargement ( |
Calculate the area by which a rectangle would be enlarged if added to the passed rectangle
|
|
sameObject ( object o ) : bool |
Determine whether this rectangle is the same as another object. Note that two rectangles can be equal but not the same object, if they both have the same bounds.
|
|
set ( |
Sets the size of this rectangle to equal the passed rectangle.
|
|
union ( |
Find the the union of this rectangle and the passed rectangle.Neither rectangle is altered
|
메소드 | 설명 | |
---|---|---|
Rectangle ( bool s ) : System |
public Add ( |
||
r | Rectangle to add to this rectangle | |
리턴 | void |
public Contains ( |
||
r | The rectangle that might be contained by this rectangle | |
리턴 | bool |
public Distance ( System.Point p ) : double | ||
p | System.Point | Point to find the distance to |
리턴 | double |
public Distance ( |
||
r | Rectangle to find the distance to | |
리턴 | double |
public Enlargement ( |
||
r | Rectangle to union with this rectangle, in order to compute the difference in area of the union and the original rectangle | |
리턴 | double |
public Intersects ( |
||
r | The rectangle that might intersect this rectangle | |
리턴 | bool |
public Rectangle ( double x1, double y1, double x2, double y2 ) : System | ||
x1 | double | coordinate of any corner of the rectangle |
y1 | double | (see x1) |
x2 | double | coordinate of the opposite corner |
y2 | double | (see x2) |
리턴 | System |
public add ( System.Point p ) : void | ||
p | System.Point | Point to add to this rectangle |
리턴 | void |
public containedBy ( |
||
r | The rectangle that might contain this rectangle | |
리턴 | bool |
public distance ( double pX, double pY ) : double | ||
pX | double | X coordinate of point |
pY | double | Y coordinate of point |
리턴 | double |
public distanceSq ( double pX, double pY ) : double | ||
pX | double | the x coordinate of point |
pY | double | the y coordinate of point |
리턴 | double |
public static enlargement ( |
||
r1 | minimum X coordinate of rectangle 1 | |
r2 | minimum X coordinate of rectangle 2 | |
리턴 | double |
public sameObject ( object o ) : bool | ||
o | object | The object to compare with this rectangle |
리턴 | bool |
public union ( |
||
r | The rectangle to union with this rectangle | |
리턴 |