Class LineString

Namespace
Cratis.Geospatial
Assembly
Cratis.Fundamentals.dll

Represents a line string composed of two or more points.

public record LineString : IEquatable<LineString>
Inheritance
LineString
Implements
Inherited Members
Extension Methods

Remarks

Initializes a new instance of LineString.

Constructors

LineString(LineString)

protected LineString(LineString original)

Parameters

original LineString

LineString(Point[])

Represents a line string composed of two or more points.

public LineString(Point[] Coordinates)

Parameters

Coordinates Point[]

The points that make up the line string.

Remarks

Initializes a new instance of LineString.

Properties

Coordinates

The points that make up the line string.

public Point[] Coordinates { get; init; }

Property Value

Point[]

EqualityContract

protected virtual Type EqualityContract { get; }

Property Value

Type

Methods

Deconstruct(out Point[])

public void Deconstruct(out Point[] Coordinates)

Parameters

Coordinates Point[]

Equals(LineString?)

public virtual bool Equals(LineString? other)

Parameters

other LineString

Returns

bool

Equals(object?)

public override bool Equals(object? obj)

Parameters

obj object

Returns

bool

GetHashCode()

public override int GetHashCode()

Returns

int

PrintMembers(StringBuilder)

protected virtual bool PrintMembers(StringBuilder builder)

Parameters

builder StringBuilder

Returns

bool

ToString()

public override string ToString()

Returns

string

Operators

operator ==(LineString?, LineString?)

public static bool operator ==(LineString? left, LineString? right)

Parameters

left LineString
right LineString

Returns

bool

operator !=(LineString?, LineString?)

public static bool operator !=(LineString? left, LineString? right)

Parameters

left LineString
right LineString

Returns

bool