Cleanup: fix typos in source code in intern/

Contributed by luzpaz.

Differential Revision: https://developer.blender.org/D13532
This commit is contained in:
Brecht Van Lommel
2022-01-05 15:09:53 +01:00
parent 29ab711efa
commit 86141a75eb
15 changed files with 19 additions and 19 deletions

View File

@@ -178,7 +178,7 @@ bool AutoTrack::TrackMarker(Marker* tracked_marker,
return false;
}
// Store original position befoer tracking, so we can claculate offset later.
// Store original position before tracking, so we can claculate offset later.
Vec2f original_center = tracked_marker->center;
// Do the tracking!

View File

@@ -239,7 +239,7 @@
// Check what is the latest C++ specification the compiler supports.
//
// NOTE: Use explicit definition here to avoid expansion-to-defined warning from
// being geenrated. While this will most likely a false-positive warning in this
// being generated. While this will most likely a false-positive warning in this
// particular case, that warning might be helpful to catch errors elsewhere.
// C++11 check.

View File

@@ -25,7 +25,7 @@
namespace libmv {
// A vector of elements with fixed lenght and deep copy semantics.
// A vector of elements with fixed length and deep copy semantics.
template <typename T, int N>
class Tuple {
public:

View File

@@ -38,7 +38,7 @@ namespace libmv {
// The 2-point algorithm solves for the rotation of the camera with a single
// focal length (4 degrees of freedom).
//
// Compute from 1 to 3 possible focal lenght for 2 point correspondences.
// Compute from 1 to 3 possible focal length for 2 point correspondences.
// Suppose that the cameras share the same optical center and focal lengths:
//
// Image 1 => H*x = x' => Image 2

View File

@@ -261,7 +261,7 @@ Mat3 RotationRodrigues(const Vec3& axis);
// positive z-axis, and y is oriented close to up.
Mat3 LookAt(Vec3 center);
// Return a diagonal matrix from a vector containg the diagonal values.
// Return a diagonal matrix from a vector containing the diagonal values.
template <typename TVec>
inline Mat Diag(const TVec& x) {
return x.asDiagonal();

View File

@@ -50,7 +50,7 @@ int SolveCubicPolynomial(Real a, Real b, Real c, Real* x0, Real* x1, Real* x2) {
Real CQ3 = 2916 * q * q * q;
if (R == 0 && Q == 0) {
// Tripple root in one place.
// Triple root in one place.
*x0 = *x1 = *x2 = -a / 3;
return 3;