Namespaces

Types in MathNet.Spatial.Units

Type Angle

Namespace MathNet.Spatial.Units

Parent ValueType

Interfaces IComparable<Angle>, IEquatable<Angle>, IFormattable, IXmlSerializable

An angle

Static Functions

Methods

Properties

Fields

Public Static Functions

Angle FromDegrees(double value)

Creates a new instance of Angle.
Parameters
double value

The value in degrees.

Return
Angle

A new instance of the Angle struct.

Angle FromRadians(double value)

Creates a new instance of Angle.
Parameters
double value

The value in radians.

Return
Angle

A new instance of the Angle struct.

Angle FromSexagesimal(int degrees, int minutes, double seconds)

Creates a new instance of Angle from the sexagesimal format of the angle in degrees, minutes, seconds
Parameters
int degrees

The degrees of the angle

int minutes

The minutes of the angle

double seconds

The seconds of the angle

Return
Angle

A new instance of the Angle struct.

Angle Parse(string value, IFormatProvider formatProvider)

Attempts to convert a string into an Angle
Parameters
string value

The string to be converted

IFormatProvider formatProvider

The IFormatProvider

Return
Angle

An Angle

Angle ReadFrom(XmlReader reader)

Creates an Angle from an XmlReader.
Parameters
XmlReader reader

An XmlReader positioned at the node to read into this Angle.

Return
Angle

An Angle that contains the data read from the reader.

bool TryParse(string text, IFormatProvider formatProvider, Angle& result)

bool TryParse(string text, Angle& result)

Public Methods

int CompareTo(Angle value)

bool Equals(object obj)

bool Equals(Angle other)

bool Equals(Angle other, Angle tolerance)

Returns a value indicating whether this instance is equal to a specified Angle object within the given tolerance.
Parameters
Angle other

An Angle object to compare with this instance.

Angle tolerance

The maximum difference for being considered equal

Return
bool

true if other represents the same angle as this instance; otherwise, false.

bool Equals(Angle other, double tolerance)

Returns a value indicating whether this instance is equal to a specified Angle object within the given tolerance.
Parameters
Angle other

An Angle object to compare with this instance.

double tolerance

The maximum difference for being considered equal

Return
bool

true if other represents the same angle as this instance; otherwise, false.

int GetHashCode()

Type GetType()

string ToString(IFormatProvider provider)

Returns a string representation of this instance using the provided IFormatProvider
Parameters
IFormatProvider provider

A IFormatProvider

Return
string

The string representation of this instance.

string ToString(string format, IFormatProvider provider)

string ToString(string format)

Returns a string representation of the Angle using the provided format
Parameters
string format

a string indicating the desired format of the double.

Return
string

The string representation of this instance.

string ToString()

string ToString<T>(string format, IFormatProvider provider, T unit)

Returns a string representation of the Angle using the provided IFormatProvider using the specified format for a given unit
Parameters
string format

a string indicating the desired format of the double.

IFormatProvider provider

A IFormatProvider

T unit

Degrees or Radians

Return
string

The string representation of this instance.

Public Properties

double Degrees get;

Gets the value in degrees

Public fields

double Radians

The value in radians
return double