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