Visual3D Game EngineAPI Documentation for XNA, C#, VB, and .NET
Returns distance from target.

Namespace: Visual3D.Scripting.API
Assembly: Visual3D.Scripting (in Visual3D.Scripting.dll) Version: 1.0.0.0 (1.0.0.0)

Syntax

      
 C#  Visual Basic 
public static float GetDistance(
	this SEntity self,
	SEntity target
)
<ExtensionAttribute> _
Public Shared Function GetDistance ( _
	self As SEntity, _
	target As SEntity _
) As Single

Parameters

self
SEntity
target
SEntity

Return Value

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type SEntity. When you use instance method syntax to call this method, omit the first parameter.

See Also