C# 클래스 VelocityDb.Collection.Spatial.Rectangle

파일 보기 프로젝트 열기: VelocityDB/VelocityDB 1 사용 예제들

공개 메소드들

메소드 설명
Add ( Rectangle r ) : void

Computes the union of this rectangle and the passed rectangle, storing the result in this rectangle.

CompareTo ( object o ) : int
Contains ( Rectangle r ) : bool

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 ( Rectangle r ) : double

Return the distance between this rectangle and the passed rectangle. If the rectangles overlap, the distance is zero.

Enlargement ( Rectangle &r ) : double

Calculate the area by which this rectangle would be enlarged if added to the passed rectangle. Neither rectangle is altered.

Equals ( Rectangle r ) : bool
GetHashCode ( ) : int

Customized hash code using the coordinates of the rectangle 37 * minX * minY * maxX * maxY

Intersects ( Rectangle &r ) : bool

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 ( Rectangle r ) : bool

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 ( Rectangle r ) : bool

Determine whether an edge of this rectangle overlies the equivalent edge of the passed rectangle

enlargement ( Rectangle r1, Rectangle r2 ) : double

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 ( Rectangle r ) : void

Sets the size of this rectangle to equal the passed rectangle.

union ( Rectangle r ) : Rectangle

Find the the union of this rectangle and the passed rectangle.Neither rectangle is altered

비공개 메소드들

메소드 설명
Rectangle ( bool s ) : System

메소드 상세

Add() 공개 메소드

Computes the union of this rectangle and the passed rectangle, storing the result in this rectangle.
public Add ( Rectangle r ) : void
r Rectangle Rectangle to add to this rectangle
리턴 void

CompareTo() 공개 메소드

public CompareTo ( object o ) : int
o object
리턴 int

Contains() 공개 메소드

Determine whether this rectangle contains the passed rectangle
public Contains ( Rectangle r ) : bool
r Rectangle The rectangle that might be contained by this rectangle
리턴 bool

Distance() 공개 메소드

Return the distance between this rectangle and the passed point. If the rectangle contains the point, the distance is zero.
public Distance ( System.Point p ) : double
p System.Point Point to find the distance to
리턴 double

Distance() 공개 메소드

Return the distance between this rectangle and the passed rectangle. If the rectangles overlap, the distance is zero.
public Distance ( Rectangle r ) : double
r Rectangle Rectangle to find the distance to
리턴 double

Enlargement() 공개 메소드

Calculate the area by which this rectangle would be enlarged if added to the passed rectangle. Neither rectangle is altered.
public Enlargement ( Rectangle &r ) : double
r Rectangle Rectangle to union with this rectangle, in order to compute the difference in area of the union and the original rectangle
리턴 double

Equals() 공개 메소드

public Equals ( Rectangle r ) : bool
r Rectangle
리턴 bool

GetHashCode() 공개 메소드

Customized hash code using the coordinates of the rectangle 37 * minX * minY * maxX * maxY
public GetHashCode ( ) : int
리턴 int

Intersects() 공개 메소드

Determine whether this rectangle intersects the passed rectangle
public Intersects ( Rectangle &r ) : bool
r Rectangle The rectangle that might intersect this rectangle
리턴 bool

Rectangle() 공개 메소드

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

ToString() 공개 메소드

Return a string representation of this rectangle, in the form: (1.2, 3.4), (5.6, 7.8)
public ToString ( ) : string
리턴 string

add() 공개 메소드

Computes the union of this rectangle and the passed point, storing the result in this rectangle.
public add ( System.Point p ) : void
p System.Point Point to add to this rectangle
리턴 void

containedBy() 공개 메소드

Determine whether this rectangle is contained by the passed rectangle
public containedBy ( Rectangle r ) : bool
r Rectangle The rectangle that might contain this rectangle
리턴 bool

distance() 공개 메소드

Return the distance between a rectangle and a point. If the rectangle contains the point, the distance is zero.
public distance ( double pX, double pY ) : double
pX double X coordinate of point
pY double Y coordinate of point
리턴 double

distanceSq() 공개 메소드

Get the square of the distance between two points.
public distanceSq ( double pX, double pY ) : double
pX double the x coordinate of point
pY double the y coordinate of point
리턴 double

edgeOverlaps() 공개 메소드

Determine whether an edge of this rectangle overlies the equivalent edge of the passed rectangle
public edgeOverlaps ( Rectangle r ) : bool
r Rectangle
리턴 bool

enlargement() 공개 정적인 메소드

Calculate the area by which a rectangle would be enlarged if added to the passed rectangle
public static enlargement ( Rectangle r1, Rectangle r2 ) : double
r1 Rectangle minimum X coordinate of rectangle 1
r2 Rectangle minimum X coordinate of rectangle 2
리턴 double

sameObject() 공개 메소드

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.
public sameObject ( object o ) : bool
o object The object to compare with this rectangle
리턴 bool

set() 공개 메소드

Sets the size of this rectangle to equal the passed rectangle.
public set ( Rectangle r ) : void
r Rectangle
리턴 void

union() 공개 메소드

Find the the union of this rectangle and the passed rectangle.Neither rectangle is altered
public union ( Rectangle r ) : Rectangle
r Rectangle The rectangle to union with this rectangle
리턴 Rectangle