Table of Contents

Constructor DisplayRay2

Namespace
OpenCAD2D
Assembly
OpenCAD2D.Core.dll

DisplayRay2(double, double, double, double, bool, DisplayStyle, string, string)

Makes a line without end.

public DisplayRay2(double x, double y, double dx, double dy, bool bothWays, DisplayStyle style, string handle, string layer)

Parameters

x double

The X of the base point.

y double

The Y of the base point.

dx double

The X of the way it runs; the way need not be of unit length.

dy double

The Y of the way it runs.

bothWays bool

True for an XLINE, which runs both ways; false for a RAY, which runs on from its base point only.

style DisplayStyle

How it is drawn.

handle string

The handle of the entity.

layer string

The layer.

Exceptions

ArgumentException

Thrown when the way has no length or is not a finite number.