### YamlMime:ManagedReference items: - uid: MLEM.Pathfinding.AStar`1.GetCost commentId: T:MLEM.Pathfinding.AStar`1.GetCost id: AStar`1.GetCost parent: MLEM.Pathfinding children: [] langs: - csharp - vb name: AStar.GetCost nameWithType: AStar.GetCost fullName: MLEM.Pathfinding.AStar.GetCost type: Delegate source: remote: path: MLEM/Pathfinding/AStar.cs branch: master repo: https://github.com/Ellpeck/MLEM id: GetCost path: ../MLEM/Pathfinding/AStar.cs startLine: 176 assemblies: - MLEM namespace: MLEM.Pathfinding summary: "\nA cost function for a given path finding position.\nIf a path point should have the default cost, should be returned.\nIf a path point should be unreachable, should be returned.\n" example: [] syntax: content: public delegate float GetCost(T currPos, T nextPos); parameters: - id: currPos type: '{T}' description: The current position in the path - id: nextPos type: '{T}' description: The position we're trying to reach from the current position return: type: System.Single content.vb: Public Delegate Function GetCost(currPos As T, nextPos As T) As Single nameWithType.vb: AStar(Of T).GetCost modifiers.csharp: - public - delegate modifiers.vb: - Public - Delegate fullName.vb: MLEM.Pathfinding.AStar(Of T).GetCost name.vb: AStar(Of T).GetCost references: - uid: MLEM.Pathfinding.AStar`1.DefaultCost commentId: F:MLEM.Pathfinding.AStar`1.DefaultCost name: DefaultCost nameWithType: AStar.DefaultCost fullName: MLEM.Pathfinding.AStar.DefaultCost nameWithType.vb: AStar(Of T).DefaultCost fullName.vb: MLEM.Pathfinding.AStar(Of T).DefaultCost - uid: MLEM.Pathfinding.AStar`1.InfiniteCost commentId: F:MLEM.Pathfinding.AStar`1.InfiniteCost name: InfiniteCost nameWithType: AStar.InfiniteCost fullName: MLEM.Pathfinding.AStar.InfiniteCost nameWithType.vb: AStar(Of T).InfiniteCost fullName.vb: MLEM.Pathfinding.AStar(Of T).InfiniteCost - uid: MLEM.Pathfinding commentId: N:MLEM.Pathfinding name: MLEM.Pathfinding nameWithType: MLEM.Pathfinding fullName: MLEM.Pathfinding - uid: '{T}' commentId: '!:T' definition: T name: T nameWithType: T fullName: T - uid: System.Single commentId: T:System.Single parent: System isExternal: true name: Single nameWithType: Single fullName: System.Single - uid: T name: T nameWithType: T fullName: T - uid: System commentId: N:System isExternal: true name: System nameWithType: System fullName: System