Struct RadLine
Represents a line segment defined by two points, providing geometric operations for charting applications.
Inherited Members
Namespace: Telerik.Charting
Assembly: Telerik.WinControls.dll
Syntax
public struct RadLine
Constructors
RadLine(Double, Double, Double, Double)
Initializes a new instance of the RadLine struct.
Declaration
public RadLine(double x1, double x2, double y1, double y2)
Parameters
|
System.Double
x1
The X-coordinate of the line start point. |
|
System.Double
x2
The X-coordinate of the line end point. |
|
System.Double
y1
The Y-coordinate of the line start point. |
|
System.Double
y2
The Y-coordinate of the line end point. |
RadLine(RadPoint, RadPoint)
Initializes a new instance of the RadLine struct.
Declaration
public RadLine(RadPoint point1, RadPoint point2)
Parameters
|
RadPoint
point1
The starting point of the line. |
|
RadPoint
point2
The ending point of the line. |
Fields
X1
The X-coordinate of the line start point.
Declaration
public double X1
Field Value
|
System.Double
|
X2
The X-coordinate of the line end point.
Declaration
public double X2
Field Value
|
System.Double
|
Y1
The Y-coordinate of the line start point.
Declaration
public double Y1
Field Value
|
System.Double
|
Y2
The Y-coordinate of the line end point.
Declaration
public double Y2
Field Value
|
System.Double
|
Methods
Round(RadLine)
Rounds the line's coordinate values to the nearest whole numbers.
Declaration
public static RadLine Round(RadLine line)
Parameters
|
RadLine
line
The line to round. |
Returns
|
RadLine
A new RadLine with rounded coordinate values. |