refactor: reuse

This commit is contained in:
ikpil 2023-10-20 00:11:10 +09:00
parent 45ede19e61
commit bc7b02d8bb
1 changed files with 1 additions and 5 deletions

View File

@ -32,11 +32,7 @@ namespace DotRecast.Core.Numerics
[MethodImpl(MethodImplOptions.AggressiveInlining)] [MethodImpl(MethodImplOptions.AggressiveInlining)]
public static RcVec3f Scale(this RcVec3f v, float scale) public static RcVec3f Scale(this RcVec3f v, float scale)
{ {
return new RcVec3f( return v * scale;
v.X * scale,
v.Y * scale,
v.Z * scale
);
} }
} }
} }