C# Class SharpNav.Pathfinding.PathfindingCommon

Store constants, structs, methods in this single class so that other classes can access this information.
ファイルを表示 Open project: Robmaister/SharpNav

Public Methods

Method Description
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.

Method Details

RandomPointInConvexPoly() public static method

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
return void