Example #1
0
 /// <summary>
 /// Return the result of an element-wise division by a scalar
 /// </summary>
 /// <param name="v">Vector to be element-wise divided by s</param>
 /// <param name="s">Scalar divisor</param>
 /// <param name="result">Vector that receives the result</param>
 /// <returns>Scaled vector a * 1/s</returns>
 public static IVector3 Div(this IVector3 v, float s, ref IVector3 result)
 {
     return(v.Mul(1 / s, ref result));
 }