VectorExtensionsGetLengthTNumeric Method
Namespace: Jodosoft.GeometryAssembly: Jodosoft.Geometry (in Jodosoft.Geometry.dll) Version: 2.0
public static TNumeric GetLength<TNumeric>(
this Vector2N<TNumeric> vector
)
where TNumeric : struct, new(), INumeric<TNumeric>
<ExtensionAttribute>
Public Shared Function GetLength(Of TNumeric As {Structure, New, INumeric(Of TNumeric)}) (
vector As Vector2N(Of TNumeric)
) As TNumeric
public:
[ExtensionAttribute]
generic<typename TNumeric>
where TNumeric : value class, gcnew(), INumeric<TNumeric>
static TNumeric GetLength(
Vector2N<TNumeric> vector
)
[<ExtensionAttribute>]
static member GetLength :
vector : Vector2N<'TNumeric> -> 'TNumeric when 'TNumeric : struct, new() and INumeric<'TNumeric>
- vector Vector2NTNumeric
-
- TNumeric
TNumericIn Visual Basic and C#, you can call this method as an instance method on any object of type
Vector2NTNumeric. 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).