C# 클래스 Core2D.Shapes.XPoint

Point shape.
상속: Core2D.Shape.BaseShape
파일 보기 프로젝트 열기: Core2D/Core2D 1 사용 예제들

공개 메소드들

메소드 설명
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