dymaptic.GeoBlazor.Core

dymaptic.GeoBlazor.Core.Model

MapPoint Class

This is another representation of Point that should be used to create MapPaths.

public class MapPoint : System.Collections.Generic.List<double>,
System.IEquatable<dymaptic.GeoBlazor.Core.Model.MapPoint>

Inheritance System.Object 🡒 System.Collections.Generic.List<System.Double> 🡒 MapPoint

Implements System.IEquatable<MapPoint>

Constructors

MapPoint(double[]) Constructor

Create a new point from a parameter list of numbers.

public MapPoint(params double[] p);

Parameters

p System.Double[]

MapPoint(IEnumerable) Constructor

Create a new point from a collection of numbers.

public MapPoint(System.Collections.Generic.IEnumerable<double> p);

Parameters

p System.Collections.Generic.IEnumerable<System.Double>

Methods

MapPoint.Copy() Method

Clones and returns the copy.

public dymaptic.GeoBlazor.Core.Model.MapPoint Copy();

Returns

MapPoint

MapPoint.Equals(MapPoint) Method

Custom equality check.

public bool Equals(dymaptic.GeoBlazor.Core.Model.MapPoint? other);

Parameters

other MapPoint

Returns

System.Boolean

MapPoint.Equals(object) Method

public override bool Equals(object? obj);

Parameters

obj System.Object

Returns

System.Boolean

MapPoint.GetHashCode() Method

public override int GetHashCode();

Returns

System.Int32

Operators

MapPoint.implicit operator MapPoint(double[]) Operator

Implicitly converts a MapPoint to a MapPath.

public static dymaptic.GeoBlazor.Core.Model.MapPoint implicit operator MapPoint(double[] p);

Parameters

p System.Double[]

Returns

MapPoint