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
xdoubleThe X of the base point.
ydoubleThe Y of the base point.
dxdoubleThe X of the way it runs; the way need not be of unit length.
dydoubleThe Y of the way it runs.
bothWaysboolTrue for an XLINE, which runs both ways; false for a RAY, which runs on from its base point only.
styleDisplayStyleHow it is drawn.
handlestringThe handle of the entity.
layerstringThe layer.
Exceptions
- ArgumentException
Thrown when the way has no length or is not a finite number.