4 instantiations of Distance
Microsoft.Maui.Maps (4)
Primitives\Distance.cs (3)
32 return new Distance(miles * MetersPerMile); 42 return new Distance(meters); 52 return new Distance(kilometers * MetersPerKilometer);
Primitives\MapSpan.cs (1)
30 return new Distance(1000 * Math.Min(latKm, longKm) / 2);
20 references to Distance
Microsoft.Maui.Controls.Maps (4)
Circle.cs (4)
22 typeof(Distance), 24 default(Distance)); 45 public Distance Radius 47 get => (Distance)GetValue(RadiusProperty);
Microsoft.Maui.Maps (16)
Core\ICircleMapElement.cs (1)
18 Distance Radius { get; }
Primitives\Distance.cs (11)
25 public static Distance FromMiles(double miles) 35 public static Distance FromMeters(double meters) 45 public static Distance FromKilometers(double kilometers) 55 public static Distance BetweenPositions(Location position1, Location position2) 75 public bool Equals(Distance other) 84 return obj is Distance && Equals((Distance)obj); 92 public static bool operator ==(Distance left, Distance right) 97 public static bool operator !=(Distance left, Distance right)
Primitives\MapSpan.cs (4)
24 public Distance Radius 52 public static MapSpan FromCenterAndRadius(Location center, Distance radius) 84 static double DistanceToLatitudeDegrees(Distance distance) 89 static double DistanceToLongitudeDegrees(Location location, Distance distance)