Struct Line
Represents a line.
Inherited Members
Namespace: System.Dynamic.ExpandoObject
Assembly: cs.temp.dll.dll
Syntax
public struct LineConstructors
Line(Coordinate, Coordinate)
Creates a new line.
Declaration
public Line(Coordinate coordinate1, Coordinate coordinate2)Parameters
| Coordinate
        coordinate1 
 | 
| Coordinate
        coordinate2 
 | 
Properties
A
Returns parameter A of an equation describing this line as Ax + By = C
Declaration
public float A { get; }Property Value
| System.Single 
 | 
B
Returns parameter B of an equation describing this line as Ax + By = C
Declaration
public float B { get; }Property Value
| System.Single 
 | 
C
Returns parameter C of an equation describing this line as Ax + By = C
Declaration
public float C { get; }Property Value
| System.Single 
 | 
Coordinate1
Gets the first coordinate.
Declaration
public Coordinate Coordinate1 { get; }Property Value
| Coordinate 
 | 
Coordinate2
Gets the second coordinate.
Declaration
public Coordinate Coordinate2 { get; }Property Value
| Coordinate 
 | 
Length
Gets the length of this line.
Declaration
public float Length { get; }Property Value
| System.Single 
 | 
Middle
Gets the middle of this line.
Declaration
public Coordinate Middle { get; }Property Value
| Coordinate 
 | 
Methods
DistanceInMeter(Coordinate)
Returns the distance from the point to this line.
Declaration
public float ? DistanceInMeter(Coordinate coordinate)Parameters
| Coordinate
        coordinate 
 | 
Returns
| System.Nullable<System.Single> 
 | 
Intersect(Line)
Calculates the intersection point of the given line with this line.
Returns null if the lines have the same direction or don't intersect.
Assumes the given line is not a segment and this line is a segment.
Declaration
public Coordinate? Intersect(Line line)Parameters
| Line
        line 
 | 
Returns
| System.Nullable<Coordinate> 
 | 
ProjectOn(Coordinate)
Projects for coordinate on this line.
Declaration
public Coordinate? ProjectOn(Coordinate coordinate)Parameters
| Coordinate
        coordinate 
 | 
Returns
| System.Nullable<Coordinate> 
 |