mirror of
https://git.mirrors.martin98.com/https://github.com/slic3r/Slic3r.git
synced 2025-08-14 04:45:57 +08:00
fixed typos (#5048)
This commit is contained in:
parent
08b3285722
commit
0536b14fac
@ -867,7 +867,7 @@ ModelObject::transform_by_instance(ModelInstance instance, bool dont_translate)
|
|||||||
/*
|
/*
|
||||||
Let:
|
Let:
|
||||||
* I1 be the trafo of the given instance,
|
* I1 be the trafo of the given instance,
|
||||||
* V the originial volume trafo and
|
* V the original volume trafo and
|
||||||
* I2 the trafo of the instance to be updated
|
* I2 the trafo of the instance to be updated
|
||||||
|
|
||||||
Then:
|
Then:
|
||||||
|
@ -26,7 +26,7 @@ TransformationMatrix::TransformationMatrix(const std::vector<double> &entries_ro
|
|||||||
if (entries_row_maj.size() != 12)
|
if (entries_row_maj.size() != 12)
|
||||||
{
|
{
|
||||||
*this = TransformationMatrix();
|
*this = TransformationMatrix();
|
||||||
CONFESS("Invalid number of entries when initalizing TransformationMatrix. Vector length must be 12.");
|
CONFESS("Invalid number of entries when initializing TransformationMatrix. Vector length must be 12.");
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
m00 = entries_row_maj[0]; m01 = entries_row_maj[1]; m02 = entries_row_maj[2]; m03 = entries_row_maj[3];
|
m00 = entries_row_maj[0]; m01 = entries_row_maj[1]; m02 = entries_row_maj[2]; m03 = entries_row_maj[3];
|
||||||
|
@ -101,7 +101,7 @@ public:
|
|||||||
/// generates a translation matrix
|
/// generates a translation matrix
|
||||||
static TransformationMatrix mat_translation(const Vectorf3 &vector);
|
static TransformationMatrix mat_translation(const Vectorf3 &vector);
|
||||||
|
|
||||||
/// generates a rotation matrix around coodinate axis
|
/// generates a rotation matrix around coordinate axis
|
||||||
static TransformationMatrix mat_rotation(double angle_rad, const Axis &axis);
|
static TransformationMatrix mat_rotation(double angle_rad, const Axis &axis);
|
||||||
|
|
||||||
/// generates a rotation matrix around arbitrary axis
|
/// generates a rotation matrix around arbitrary axis
|
||||||
|
Loading…
x
Reference in New Issue
Block a user