C# Class Core2D.Editor.Bounds.ShapeBounds

Calculate shape bounds.
ファイルを表示 Open project: Core2D/Core2D Class Usage Examples

Public Methods

Method Description
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

Method Details

Contains() public static method

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

Contains() public static method

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
return bool

Contains() public static method

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

GetArcBounds() public static method

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
return Core2D.Math.Rect2

GetEllipseBounds() public static method

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
return Core2D.Math.Rect2

GetImageBounds() public static method

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
return Core2D.Math.Rect2

GetPointBounds() public static method

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
return Core2D.Math.Rect2

GetRectangleBounds() public static method

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
return Core2D.Math.Rect2

GetTextBounds() public static method

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
return Core2D.Math.Rect2

GetVertices() public static method

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

Overlap() public static method

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

ToConvexHull() public static method

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