C# Class SharpNav.Pathfinding.PathfindingCommon

Store constants, structs, methods in this single class so that other classes can access this information.
Afficher le fichier Open project: Robmaister/SharpNav

Méthodes publiques

Méthode 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 méthode

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
Résultat void