C# 클래스 Core2D.Editor.Bounds.ShapeBounds

Calculate shape bounds.
파일 보기 프로젝트 열기: Core2D/Core2D 1 사용 예제들

공개 메소드들

메소드 설명
Contains ( IList points, Vector2 v, double dx, double dy ) : bool

Contains ( XLine line, Vector2 v, double threshold, double dx, double dy ) : bool

Checks if line contains point.

Contains ( double x, double y, Vector2 convexHull, int k ) : bool

GetArcBounds ( XArc arc, double dx, double dy ) : Rect2

Get the bounding rectangle for XArc shape.

GetEllipseBounds ( XEllipse ellipse, double dx, double dy ) : Rect2

Get the bounding rectangle for XEllipse shape.

GetImageBounds ( XImage image, double dx, double dy ) : Rect2

Get the bounding rectangle for XImage shape.

GetPointBounds ( XPoint point, double threshold, double dx, double dy ) : Rect2

Get the bounding rectangle for XPoint shape.

GetRectangleBounds ( XRectangle rectangle, double dx, double dy ) : Rect2

Get the bounding rectangle for XRectangle shape.

GetTextBounds ( XText text, double dx, double dy ) : Rect2

Get the bounding rectangle for XText shape.

GetVertices ( IList points, double dx, double dy ) : Vector2[]

Overlap ( Vector2 selection, IList points, double dx, double dy ) : bool

ToConvexHull ( IList points, double dx, double dy, int &k, Vector2 &convexHull ) : void

메소드 상세

Contains() 공개 정적인 메소드

public static Contains ( IList points, Vector2 v, double dx, double dy ) : bool
points IList
v Vector2
dx double
dy double
리턴 bool

Contains() 공개 정적인 메소드

Checks if line contains point.
public static Contains ( XLine line, Vector2 v, double threshold, double dx, double dy ) : bool
line Core2D.Shapes.XLine
v Vector2
threshold double
dx double
dy double
리턴 bool

Contains() 공개 정적인 메소드

public static Contains ( double x, double y, Vector2 convexHull, int k ) : bool
x double
y double
convexHull Vector2
k int
리턴 bool

GetArcBounds() 공개 정적인 메소드

Get the bounding rectangle for XArc shape.
public static GetArcBounds ( XArc arc, double dx, double dy ) : Rect2
arc Core2D.Shapes.XArc
dx double
dy double
리턴 Core2D.Math.Rect2

GetEllipseBounds() 공개 정적인 메소드

Get the bounding rectangle for XEllipse shape.
public static GetEllipseBounds ( XEllipse ellipse, double dx, double dy ) : Rect2
ellipse Core2D.Shapes.XEllipse
dx double
dy double
리턴 Core2D.Math.Rect2

GetImageBounds() 공개 정적인 메소드

Get the bounding rectangle for XImage shape.
public static GetImageBounds ( XImage image, double dx, double dy ) : Rect2
image Core2D.Shapes.XImage
dx double
dy double
리턴 Core2D.Math.Rect2

GetPointBounds() 공개 정적인 메소드

Get the bounding rectangle for XPoint shape.
public static GetPointBounds ( XPoint point, double threshold, double dx, double dy ) : Rect2
point Core2D.Shapes.XPoint
threshold double
dx double
dy double
리턴 Core2D.Math.Rect2

GetRectangleBounds() 공개 정적인 메소드

Get the bounding rectangle for XRectangle shape.
public static GetRectangleBounds ( XRectangle rectangle, double dx, double dy ) : Rect2
rectangle Core2D.Shapes.XRectangle
dx double
dy double
리턴 Core2D.Math.Rect2

GetTextBounds() 공개 정적인 메소드

Get the bounding rectangle for XText shape.
public static GetTextBounds ( XText text, double dx, double dy ) : Rect2
text Core2D.Shapes.XText
dx double
dy double
리턴 Core2D.Math.Rect2

GetVertices() 공개 정적인 메소드

public static GetVertices ( IList points, double dx, double dy ) : Vector2[]
points IList
dx double
dy double
리턴 Vector2[]

Overlap() 공개 정적인 메소드

public static Overlap ( Vector2 selection, IList points, double dx, double dy ) : bool
selection Vector2
points IList
dx double
dy double
리턴 bool

ToConvexHull() 공개 정적인 메소드

public static ToConvexHull ( IList points, double dx, double dy, int &k, Vector2 &convexHull ) : void
points IList
dx double
dy double
k int
convexHull Vector2
리턴 void