Class SvgLine
Represents an SVG line element.
Assembly: OpenSvg.dll
Syntax
public class SvgLine : SvgVisual, IXmlSerializable, IEquatable<SvgElement>
Fields
|
Edit this page
View Source
x1
Declaration
protected readonly FloatAttr x1
Field Value
|
Edit this page
View Source
x2
Declaration
protected readonly FloatAttr x2
Field Value
|
Edit this page
View Source
y1
Declaration
protected readonly FloatAttr y1
Field Value
|
Edit this page
View Source
y2
Declaration
protected readonly FloatAttr y2
Field Value
Properties
|
Edit this page
View Source
P1
Gets or sets the starting point of the line.
Declaration
public Vector2 P1 { get; set; }
Property Value
|
Edit this page
View Source
P2
Gets or sets the ending point of the line.
Declaration
public Vector2 P2 { get; set; }
Property Value
|
Edit this page
View Source
SvgName
Gets or sets the name of the SVG element.
Declaration
public override string SvgName { get; }
Property Value
Overrides
|
Edit this page
View Source
X1
Gets or sets the x-coordinate of the starting point of the line.
Declaration
public float X1 { get; set; }
Property Value
|
Edit this page
View Source
X2
Gets or sets the x-coordinate of the ending point of the line.
Declaration
public float X2 { get; set; }
Property Value
|
Edit this page
View Source
Y1
Gets or sets the y-coordinate of the starting point of the line.
Declaration
public float Y1 { get; set; }
Property Value
|
Edit this page
View Source
Y2
Gets or sets the y-coordinate of the ending point of the line.
Declaration
public float Y2 { get; set; }
Property Value
Methods
|
Edit this page
View Source
ComputeConvexHull()
Computes the convex hull of the line.
Declaration
protected override ConvexHull ComputeConvexHull()
Returns
Type |
Description |
ConvexHull |
The convex hull of the line.
|
Overrides
Implements