C# 클래스 CUE.NET.Helper.RectangleHelper

파일 보기 프로젝트 열기: DarthAffe/CUE.NET

공개 메소드들

메소드 설명
CalculateIntersectPercentage ( RectangleF rect, RectangleF referenceRect ) : float

Calculates the percentage of the intersection of two rectangles.

CreateRectangleFromPoints ( PointF point1, PointF point2 ) : RectangleF

Creates a rectangle from two corner points.

CreateRectangleFromRectangles ( IEnumerable rectangles ) : RectangleF

Creates a rectangle containing n other rectangles.

CreateRectangleFromRectangles ( RectangleF rectangle1, RectangleF rectangle2 ) : RectangleF

Creates a rectangle containing two other rectangles.

GetCenter ( this rectangle, float offsetX = 0f, float offsetY = 0f ) : PointF

Calculates the center-point of a rectangle adding an offset.

Move ( this rectangle, float offsetX = 0f, float offsetY = 0f ) : RectangleF

Moves a rectangle by a adding an offset.

메소드 상세

CalculateIntersectPercentage() 공개 정적인 메소드

Calculates the percentage of the intersection of two rectangles.
public static CalculateIntersectPercentage ( RectangleF rect, RectangleF referenceRect ) : float
rect System.Drawing.RectangleF The rectangle from which the percentage should be calculated.
referenceRect System.Drawing.RectangleF The intersecting rectangle.
리턴 float

CreateRectangleFromPoints() 공개 정적인 메소드

Creates a rectangle from two corner points.
public static CreateRectangleFromPoints ( PointF point1, PointF point2 ) : RectangleF
point1 System.Drawing.PointF The first point.
point2 System.Drawing.PointF The second points.
리턴 System.Drawing.RectangleF

CreateRectangleFromRectangles() 공개 정적인 메소드

Creates a rectangle containing n other rectangles.
public static CreateRectangleFromRectangles ( IEnumerable rectangles ) : RectangleF
rectangles IEnumerable The list of rectangles.
리턴 System.Drawing.RectangleF

CreateRectangleFromRectangles() 공개 정적인 메소드

Creates a rectangle containing two other rectangles.
public static CreateRectangleFromRectangles ( RectangleF rectangle1, RectangleF rectangle2 ) : RectangleF
rectangle1 System.Drawing.RectangleF The first rectangle.
rectangle2 System.Drawing.RectangleF The second rectangle.
리턴 System.Drawing.RectangleF

GetCenter() 공개 정적인 메소드

Calculates the center-point of a rectangle adding an offset.
public static GetCenter ( this rectangle, float offsetX = 0f, float offsetY = 0f ) : PointF
rectangle this The rectangle.
offsetX float The offset for the x-value
offsetY float The offset for the y-value
리턴 System.Drawing.PointF

Move() 공개 정적인 메소드

Moves a rectangle by a adding an offset.
public static Move ( this rectangle, float offsetX = 0f, float offsetY = 0f ) : RectangleF
rectangle this The rectangle.
offsetX float The offset for the x-value
offsetY float The offset for the y-value
리턴 System.Drawing.RectangleF