Пример #1
0
 /// <summary>
 /// Returns this vector with all components rounded to the nearest integer,
 /// with halfway cases rounded towards the nearest multiple of two.
 /// </summary>
 /// <returns>The rounded vector.</returns>
 public Vector2d Round()
 {
     return(new Vector2d(Mathd.Round(x), Mathd.Round(y)));
 }
Пример #2
0
 public Vector4d Round()
 {
     return(new Vector4d(Mathd.Round(x), Mathd.Round(y), Mathd.Round(z), Mathd.Round(w)));
 }
Пример #3
0
 /// <summary>
 /// Returns this vector with all components rounded to the nearest integer,
 /// with halfway cases rounded towards the nearest multiple of two.
 /// </summary>
 /// <returns>The rounded vector.</returns>
 public Vector3d Round()
 {
     return(new Vector3d(Mathd.Round(x), Mathd.Round(y), Mathd.Round(z)));
 }