Skip to content

2f2408be 116b 1763 42cd 4fd3f6cd2583

Kim Hugener-Ohlsen edited this page May 28, 2016 · 2 revisions

SpatialExtensions.Meters(TValue) Method

Gets the value as meters.

Namespace: Sundew.Quantities.Spatial
Assembly: Sundew.Quantities (in Sundew.Quantities.dll) Version: 1.0.2.0 (1.0.2.0)

Syntax

C#

public static Distance Meters<TValue>(
	this TValue value
)
where TValue : struct, new(), IComparable, IFormattable

C#

public static Distance Meters<TValue>(
	this TValue value
)
where TValue : struct, new(), IComparable, IFormattable

VB

<ExtensionAttribute>
Public Shared Function Meters(Of TValue As {Structure, New, IComparable, IFormattable}) ( 
	value As TValue
) As Distance

VB

<ExtensionAttribute>
Public Shared Function Meters(Of TValue As {Structure, New, IComparable, IFormattable}) ( 
	value As TValue
) As Distance

C++

public:
[ExtensionAttribute]
generic<typename TValue>
where TValue : value class, gcnew(), IComparable, IFormattable
static Distance^ Meters(
	TValue value
)

C++

public:
[ExtensionAttribute]
generic<typename TValue>
where TValue : value class, gcnew(), IComparable, IFormattable
static Distance^ Meters(
	TValue value
)

F#

[<ExtensionAttribute>]
static member Meters : 
        value : 'TValue -> Distance  when 'TValue : struct, new() and IComparable and IFormattable

F#

[<ExtensionAttribute>]
static member Meters : 
        value : 'TValue -> Distance  when 'TValue : struct, new() and IComparable and IFormattable

Parameters

 

value
Type: TValue
The distance value.

Type Parameters

 

TValue
The type of the value.

Return Value

Type: Distance
A Distance.

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type . When you use instance method syntax to call this method, omit the first parameter. For more information, see Extension Methods (Visual Basic) or Extension Methods (C# Programming Guide).

See Also

Reference

SpatialExtensions Class
Sundew.Quantities.Spatial Namespace

Clone this wiki locally