C# Класс Core2D.Shapes.XPoint

Point shape.
Наследование: Core2D.Shape.BaseShape
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
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

Описание методов

Clone() публичный Метод

Clone current instance of the XPoint.
public Clone ( ) : XPoint
Результат XPoint

Create() публичный статический Метод

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.
Результат XPoint

DistanceTo() публичный Метод

Calculates distance between points.
public DistanceTo ( XPoint point ) : double
point XPoint The other point
Результат double

Draw() публичный Метод

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
Результат void

FromPoint2() публичный статический Метод

Creates a new XPoint instance.
public static FromPoint2 ( Point2 point ) : XPoint
point Core2D.Math.Point2 The source point.
Результат XPoint

GetPoints() публичный Метод

public GetPoints ( ) : IEnumerable
Результат IEnumerable

Move() публичный Метод

public Move ( double dx, double dy ) : void
dx double
dy double
Результат void

ToString() публичный Метод

public ToString ( ) : string
Результат string