SharpMath.float4x4.MakeLookAt C# (CSharp) Method

MakeLookAt() public method

public MakeLookAt ( float3 _Position, float3 _Target, float3 _Up ) : float4x4
_Position float3
_Target float3
_Up float3
return float4x4
        public float4x4 MakeLookAt( float3 _Position, float3 _Target, float3 _Up )
        {
            float3	At = (_Target - _Position).Normalize();
            float3	Right = (_Up ^ At).Normalize();
            float3	Up = At ^ Right;

            MakeIdentity();
            SetRow0( Right );
            SetRow1( Up );
            SetRow2( At );
            SetTrans( _Position );

            return	this;
        }