C# 클래스 SharpNav.Pathfinding.PathfindingCommon

Store constants, structs, methods in this single class so that other classes can access this information.
파일 보기 프로젝트 열기: Robmaister/SharpNav

공개 메소드들

메소드 설명
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