Beispiel #1
0
 public Vector3d Snapped(Vector3d by)
 {
     return(new Vector3d
            (
                Mathd.Stepify(x, by.x),
                Mathd.Stepify(y, by.y),
                Mathd.Stepify(z, by.z)
            ));
 }
Beispiel #2
0
 public Vector2d Snapped(Vector2d by)
 {
     return(new Vector2d(Mathd.Stepify(x, by.x), Mathd.Stepify(y, by.y)));
 }