17 lines
398 B
C#
17 lines
398 B
C#
using Microsoft.Xna.Framework;
|
|
|
|
namespace Kav.Extensions
|
|
{
|
|
public static class Vector3Extensions
|
|
{
|
|
public static Vector3 Floor(this Vector3 input)
|
|
{
|
|
var x = (float)System.Math.Floor(input.X);
|
|
var y = (float)System.Math.Floor(input.Y);
|
|
var z = (float)System.Math.Floor(input.Z);
|
|
|
|
return new Vector3(x, y, z);
|
|
}
|
|
}
|
|
}
|