Cleanup: fix typos in source code in intern/
Contributed by luzpaz. Differential Revision: https://developer.blender.org/D13532
This commit is contained in:
@@ -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!
|
||||
|
||||
@@ -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.
|
||||
|
||||
@@ -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:
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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();
|
||||
|
||||
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user