public static class VectorX { public static Vector3 SquareNormalize (this Vector3 vector) { var bounds = new Bounds(Vector3.zero, Vector3.one * 2f); return bounds.ClosestPoint(vector); } }