C# Class Core2D.Shapes.XPoint

Point shape.
Inheritance: Core2D.Shape.BaseShape
ファイルを表示 Open project: Core2D/Core2D Class Usage Examples

Public Methods

Method Description
Clone ( ) : XPoint

Clone current instance of the XPoint.

Create ( double x = 0.0, double y = 0.0, BaseShape shape = null, PointAlignment alignment = PointAlignment.None, string name = "" ) : XPoint

Creates a new XPoint instance.

DistanceTo ( XPoint point ) : double

Calculates distance between points.

Draw ( object dc, ShapeRenderer renderer, double dx, double dy, ImmutableArray db, XRecord r ) : void
FromPoint2 ( Point2 point ) : XPoint

Creates a new XPoint instance.

GetPoints ( ) : IEnumerable
Move ( double dx, double dy ) : void
ToString ( ) : string

Method Details

Clone() public method

Clone current instance of the XPoint.
public Clone ( ) : XPoint
return XPoint

Create() public static method

Creates a new XPoint instance.
public static Create ( double x = 0.0, double y = 0.0, BaseShape shape = null, PointAlignment alignment = PointAlignment.None, string name = "" ) : XPoint
x double The X coordinate of point.
y double The Y coordinate of point.
shape Core2D.Shape.BaseShape The point template.
alignment PointAlignment The point alignment.
name string The shape name.
return XPoint

DistanceTo() public method

Calculates distance between points.
public DistanceTo ( XPoint point ) : double
point XPoint The other point
return double

Draw() public method

public Draw ( object dc, ShapeRenderer renderer, double dx, double dy, ImmutableArray db, XRecord r ) : void
dc object
renderer Core2D.Renderer.ShapeRenderer
dx double
dy double
db ImmutableArray
r Core2D.Data.Database.XRecord
return void

FromPoint2() public static method

Creates a new XPoint instance.
public static FromPoint2 ( Point2 point ) : XPoint
point Core2D.Math.Point2 The source point.
return XPoint

GetPoints() public method

public GetPoints ( ) : IEnumerable
return IEnumerable

Move() public method

public Move ( double dx, double dy ) : void
dx double
dy double
return void

ToString() public method

public ToString ( ) : string
return string