forked from mirror/DotRecast
refactor: reuse
This commit is contained in:
parent
45ede19e61
commit
bc7b02d8bb
|
@ -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;
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue