Battle Talent  V11
Static Public Member Functions | List of all members
CrossLink.Geometry Class Reference

Static Public Member Functions

static int IntPow (int x, uint pow)
 
static float EaseInOut (float time, float rate)
 
static float EaseIn (float time, float rate)
 
static float EaseOut (float time, float rate)
 
static float GetDistance (Vector3 from, Vector3 to, bool ignoreY=false)
 
static bool IsInRange (Vector3 a, Vector3 b, float dis, bool ignoreY=false)
 
static float DisPoint2Line (Vector3 point, Vector3 linePoint1, Vector3 linePoint2)
 点到直线距离 More...
 
static bool IsZero (Vector3 vec)
 
static Vector3 ClosestPointOnSidePlane (BoxCollider collider, Vector3 to)
 
static Vector3 ClosestPointOnSurface (BoxCollider collider, Vector3 to)
 

Member Function Documentation

◆ DisPoint2Line()

static float CrossLink.Geometry.DisPoint2Line ( Vector3  point,
Vector3  linePoint1,
Vector3  linePoint2 
)
static

点到直线距离

Parameters
point点坐标
linePoint1直线上一个点的坐标
linePoint2直线上另一个点的坐标
Returns