C# Класс SharpNav.Pathfinding.PathfindingCommon

Store constants, structs, methods in this single class so that other classes can access this information.
Показать файл Открыть проект

Открытые методы

Метод Описание
RandomPointInConvexPoly ( Microsoft.Xna.Framework.Vector3 pts, float s, float t, Microsoft.Xna.Framework.Vector3 &pt ) : void

Generate an accurate sample of random points in the convex polygon and pick a point.

Описание методов

RandomPointInConvexPoly() публичный статический Метод

Generate an accurate sample of random points in the convex polygon and pick a point.
public static RandomPointInConvexPoly ( Microsoft.Xna.Framework.Vector3 pts, float s, float t, Microsoft.Xna.Framework.Vector3 &pt ) : void
pts Microsoft.Xna.Framework.Vector3 The polygon's points data
s float A random float
t float Another random float
pt Microsoft.Xna.Framework.Vector3 The resulting point
Результат void