public void Normalize() { double num = DVector3.Magnitude(this); if (num > 9.99999974737875E-06) { this = this / num; } else { this = DVector3.zero; } }
public static DVector3 Normalize(DVector3 value) { double num = DVector3.Magnitude(value); if (num > 9.99999974737875E-06) { return(value / num); } else { return(DVector3.zero); } }