1) , , float
, #. T where T : float. , only class or interface could be specified as constraint.
2) , .... , ,
, 1 . , . , , ( ). , . - :
public static class Vector2Ext
{
public static Vector3 BiLerp(
this Vector2 _uv,
Vector3 _00,
Vector3 _01,
Vector3 _10,
Vector3 _11)
{
}
}
BiLerp Vector2.
Vector2 vector2 = ...;
vector2.BiLerp(_00, _01, _10, _11);
, , , .
3) # const ?
, , . MSDN?
4) ++ . , , # ? ref - ?
. ref, . , VectorXD . , valuetype . , , , Vector3D . ref . , , . , MSDN ref.