From bc7b02d8bb21864043517b2d9cc6552ba1569d51 Mon Sep 17 00:00:00 2001 From: ikpil Date: Fri, 20 Oct 2023 00:11:10 +0900 Subject: [PATCH] refactor: reuse --- src/DotRecast.Core/Numerics/RcVecExtensions.cs | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/src/DotRecast.Core/Numerics/RcVecExtensions.cs b/src/DotRecast.Core/Numerics/RcVecExtensions.cs index 4513b1e..d2e5dd7 100644 --- a/src/DotRecast.Core/Numerics/RcVecExtensions.cs +++ b/src/DotRecast.Core/Numerics/RcVecExtensions.cs @@ -32,11 +32,7 @@ namespace DotRecast.Core.Numerics [MethodImpl(MethodImplOptions.AggressiveInlining)] public static RcVec3f Scale(this RcVec3f v, float scale) { - return new RcVec3f( - v.X * scale, - v.Y * scale, - v.Z * scale - ); + return v * scale; } } } \ No newline at end of file