Show / Hide Table of Contents

Struct Weight

A structure that represents a weight augmented with time and distance.

Inherited Members
System.ValueType.Equals(System.Object)
System.ValueType.GetHashCode()
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetType()
Namespace: System.Dynamic.ExpandoObject
Assembly: cs.temp.dll.dll
Syntax
public struct Weight

Fields

MaxValue

Represents the largest possible weight.

Declaration
public static Weight MaxValue
Field Value
Weight

MinValue

Represents the smallest possible weight.

Declaration
public static Weight MinValue
Field Value
Weight

Zero

Represents a weight equal to zero.

Declaration
public static Weight Zero
Field Value
Weight

Properties

Distance

Get or sets the distance in meters.

Declaration
public float Distance { get; set; }
Property Value
System.Single

Time

Gets or sets the time in seconds.

Declaration
public float Time { get; set; }
Property Value
System.Single

Value

Gets or sets the weight.

Declaration
public float Value { get; set; }
Property Value
System.Single

Methods

GetForMetric(ProfileMetric)

Gets the weight for the given metric.

Declaration
public float GetForMetric(ProfileMetric metric)
Parameters
ProfileMetric metric

Returns
System.Single

GetGetWeight()

Gets a function that calculates the weight.

Declaration
public static Func<float, FactorAndSpeed, Weight> GetGetWeight()
Returns
Func<System.Single, FactorAndSpeed, Weight>

ToString()

Returns a string describing this object.

Declaration
public override string ToString()
Returns
System.String

Overrides
System.ValueType.ToString()

Operators

Addition(Weight, Weight)

Implements the + operator.

Declaration
public static Weight operator +(Weight l, Weight r)
Parameters
Weight l

Weight r

Returns
Weight

Subtraction(Weight, Weight)

Implements the - operator.

Declaration
public static Weight operator -(Weight l, Weight r)
Parameters
Weight l

Weight r

Returns
Weight

Back to top Built by Itinero, MIT licensed.