C# Class Core2D.Shapes.XPoint

Point shape.
Inheritance: Core2D.Shape.BaseShape
Afficher le fichier Open project: Core2D/Core2D Class Usage Examples

Méthodes publiques

Méthode 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 méthode

Clone current instance of the XPoint.
public Clone ( ) : XPoint
Résultat XPoint

Create() public static méthode

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.
Résultat XPoint

DistanceTo() public méthode

Calculates distance between points.
public DistanceTo ( XPoint point ) : double
point XPoint The other point
Résultat double

Draw() public méthode

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
Résultat void

FromPoint2() public static méthode

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

GetPoints() public méthode

public GetPoints ( ) : IEnumerable
Résultat IEnumerable

Move() public méthode

public Move ( double dx, double dy ) : void
dx double
dy double
Résultat void

ToString() public méthode

public ToString ( ) : string
Résultat string