Show / Hide Table of Contents

Struct Dms

Handling angle in format of Degrees, Minutes and Seconds (DMS)

Implements
IEquatable<Dms>
Inherited Members
object.Equals(object, object)
object.GetType()
object.ReferenceEquals(object, object)
Namespace: FpAssistantCore.Geographical
Assembly: FpAssistantCoreScl.dll
Syntax
public readonly struct Dms : IEquatable<Dms>

Constructors

View Source

Dms(int, int, double)

Constructor to initialise a DMS type

Declaration
public Dms(int degrees, int minutes, double seconds)
Parameters
Type Name Description
int degrees

Degrees

int minutes

Minutes

double seconds

Seconds

Exceptions
Type Condition
ArgumentException

When 60 or higher is passed to minutes or seconds parameter

Properties

View Source

Degrees

Degrees segment of the DMS

Declaration
public int Degrees { get; }
Property Value
Type Description
int

Numerical value of the degrees

View Source

Minutes

Minutes segment of the DMS

Declaration
public int Minutes { get; }
Property Value
Type Description
int

Numerical value of the minutes

View Source

Seconds

Seconds segment of the DMS

Declaration
public double Seconds { get; }
Property Value
Type Description
double

Numerical value of the seconds

Methods

View Source

AsDecimalDegrees()

Convert to decimal degrees, minutes and seconds

Declaration
public double AsDecimalDegrees()
Returns
Type Description
double

Decimal degrees

View Source

Deconstruct(out int, out int, out double)

Deconstruct

Declaration
public void Deconstruct(out int degrees, out int minutes, out double seconds)
Parameters
Type Name Description
int degrees
int minutes
double seconds
View Source

Equals(Dms)

Declaration
public bool Equals(Dms other)
Parameters
Type Name Description
Dms other
Returns
Type Description
bool
View Source

Equals(object)

Declaration
public override bool Equals(object obj)
Parameters
Type Name Description
object obj
Returns
Type Description
bool
Overrides
ValueType.Equals(object)
View Source

GetHashCode()

Declaration
public override int GetHashCode()
Returns
Type Description
int
Overrides
ValueType.GetHashCode()
View Source

ToString()

Declaration
public override string ToString()
Returns
Type Description
string
Overrides
ValueType.ToString()
View Source

ToString(IFormatProvider)

Declaration
public string ToString(IFormatProvider provider)
Parameters
Type Name Description
IFormatProvider provider
Returns
Type Description
string

Operators

View Source

operator ==(Dms, Dms)

Declaration
public static bool operator ==(Dms left, Dms right)
Parameters
Type Name Description
Dms left
Dms right
Returns
Type Description
bool
View Source

operator !=(Dms, Dms)

Declaration
public static bool operator !=(Dms left, Dms right)
Parameters
Type Name Description
Dms left
Dms right
Returns
Type Description
bool

Implements

IEquatable<T>
  • View Source
In this article
Back to top Copyright 2018-2026 CADology Limited