UnityEngine.Ray2D.GetPoint C# (CSharp) Method

GetPoint() public method

Get a point that lies a given distance along a ray.

public GetPoint ( float distance ) : Vector2
distance float Distance of the desired point along the path of the ray.
return Vector2
        public Vector2 GetPoint(float distance)
        {
            return (this.m_Origin + ((Vector2) (this.m_Direction * distance)));
        }

Usage Example

コード例 #1
0
 static public int GetPoint(IntPtr l)
 {
     try{
         UnityEngine.Ray2D self = (UnityEngine.Ray2D)checkSelf(l);
         System.Single     a1;
         checkType(l, 2, out a1);
         UnityEngine.Vector2 ret = self.GetPoint(a1);
         pushValue(l, ret);
         return(1);
     }
     catch (Exception e) {
         LuaDLL.luaL_error(l, e.ToString());
         return(0);
     }
 }
All Usage Examples Of UnityEngine.Ray2D::GetPoint