コード例 #1
0
ファイル: Extensions.cs プロジェクト: MohitSethi99/Mathfs
 /// <inheritdoc cref="Mathfs.Round(Vector2,float)"/>
 [MethodImpl(INLINE)] public static Vector4 Round(this Vector4 value, float snapInterval) => Mathfs.Round(value, snapInterval);
コード例 #2
0
ファイル: Extensions.cs プロジェクト: MohitSethi99/Mathfs
 /// <inheritdoc cref="Mathfs.Round(Vector2)"/>
 [MethodImpl(INLINE)] public static Vector4 Round(this Vector4 value) => Mathfs.Round(value);
コード例 #3
0
ファイル: Extensions.cs プロジェクト: MohitSethi99/Mathfs
 /// <inheritdoc cref="Mathfs.Round(float)"/>
 [MethodImpl(INLINE)] public static float Round(this float value, float snapInterval) => Mathfs.Round(value, snapInterval);
コード例 #4
0
ファイル: Extensions.cs プロジェクト: MohitSethi99/Mathfs
 /// <inheritdoc cref="Mathfs.Round(float)"/>
 [MethodImpl(INLINE)] public static float Round(this float value) => Mathfs.Round(value);
コード例 #5
0
 public static Vector4 Round(this Vector4 v) => new Vector4(Mathfs.Round(v.x), Mathfs.Round(v.y), Mathfs.Round(v.z), Mathfs.Round(v.w));
コード例 #6
0
 public static Vector3 Round(this Vector3 v) => new Vector3(Mathfs.Round(v.x), Mathfs.Round(v.y), Mathfs.Round(v.z));
コード例 #7
0
 public static Vector2 Round(this Vector2 v) => new Vector2(Mathfs.Round(v.x), Mathfs.Round(v.y));
コード例 #8
0
 public static float Round(this float v, float snapInterval) => Mathfs.Round(v, snapInterval);