Added a convenient overload of translate_point.

This commit is contained in:
Davis King 2015-04-22 07:40:06 -04:00
parent dd43ba44b7
commit 53e825d35c
2 changed files with 19 additions and 0 deletions

View File

@ -783,6 +783,15 @@ namespace dlib
return point_transform_affine3d(identity_matrix<double>(3),delta);
}
inline point_transform_affine3d translate_point (
double x,
double y,
double z
)
{
return translate_point(vector<double>(x,y,z));
}
// ----------------------------------------------------------------------------------------
class camera_transform

View File

@ -576,6 +576,16 @@ namespace dlib
point_transform_affine3d(identity_matrix<double>(3),delta);
!*/
point_transform_affine3d translate_point (
double x,
double y,
double z
);
/*!
ensures
- returns translate_point(vector<double>(x,y,z))
!*/
// ----------------------------------------------------------------------------------------
class camera_transform