-
Notifications
You must be signed in to change notification settings - Fork 2
Open
Description
Hi, your library is amazing but the function translation
in line 119,
_result[1, 3] = moveX;
should be
_result[1, 4] = moveX;
in your code:
public static Matrix Translation(double moveX, double moveY, double moveZ)
{
var _result = new Matrix(4);
_result[1, 1] = 1.0;
_result[1, 2] = 0.0;
_result[1, 3] = 0.0;
_result[1, 3] = moveX;
//
_result[2, 1] = 0.0;
_result[2, 2] = 1.0;
_result[2, 3] = 0.0;
_result[2, 4] = moveY;
//
_result[3, 1] = 0.0;
_result[3, 2] = 0.0;
_result[3, 3] = 1.0;
_result[3, 4] = moveZ;
//
_result[4, 1] = 0.0;
_result[4, 2] = 0.0;
_result[4, 3] = 0.0;
_result[4, 4] = 1.0;
return _result;
}
kind regards,
Ibrahim
Metadata
Metadata
Assignees
Labels
No labels