Ejemplo n.º 1
0
 /// <inheritdoc cref="Mathfs.Remap(Bounds,Bounds,Vector3)"/>
 [MethodImpl(INLINE)] public static Vector3 Remap(this Vector3 iPos, Bounds iBounds, Bounds oBounds) => Mathfs.Remap(iBounds.min, iBounds.max, oBounds.min, oBounds.max, iPos);
Ejemplo n.º 2
0
 /// <inheritdoc cref="Mathfs.Remap(Rect,Rect,Vector2)"/>
 [MethodImpl(INLINE)] public static Vector2 Remap(this Vector2 iPos, Rect iRect, Rect oRect) => Mathfs.Remap(iRect.min, iRect.max, oRect.min, oRect.max, iPos);
Ejemplo n.º 3
0
 /// <inheritdoc cref="Mathfs.Remap(float,float,float,float,float)"/>
 [MethodImpl(INLINE)] public static float Remap(this float value, float iMin, float iMax, float oMin, float oMax) => Mathfs.Remap(iMin, iMax, oMin, oMax, value);
Ejemplo n.º 4
0
 /// <inheritdoc cref="Mathfs.Remap(Vector3,Vector3,Vector3,Vector3,Vector3)"/>
 [MethodImpl(INLINE)] public static Vector3 Remap(this Vector3 v, Vector3 iMin, Vector3 iMax, Vector3 oMin, Vector3 oMax) => Mathfs.Remap(iMin, iMax, oMin, oMax, v);
Ejemplo n.º 5
0
 public static float Remap(this float v, float iMin, float iMax, float oMin, float oMax) => Mathfs.Remap(iMin, iMax, oMin, oMax, v);