Ejemplo n.º 1
0
 /// <summary>
 /// 求发射光线
 /// </summary>
 /// <param name="inDirection">入射光线</param>
 /// <param name="inNormal">法线</param>
 /// <returns></returns>
 public static Float2 Reflect(Float2 inDirection, Float2 inNormal)
 {
     return(inDirection - Float2.Project(inDirection, inNormal) * 2);
 }