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)]
|
[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
|
|
||||||
);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
Loading…
Reference in New Issue