Skip to content

Commit b49dddb

Browse files
authored
docs: fix typos in fmath.h comments (AcademySoftwareFoundation#5222)
Signed-off-by: Luna Kim <177369799+luna-y-kim@users.noreply.github.com>
1 parent 36a7ff0 commit b49dddb

1 file changed

Lines changed: 8 additions & 8 deletions

File tree

src/include/OpenImageIO/fmath.h

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -404,7 +404,7 @@ lerp (const T& v0, const T& v1, const Q& x)
404404

405405

406406

407-
/// Bilinearly interoplate values v0-v3 (v0 upper left, v1 upper right,
407+
/// Bilinearly interpolate values v0-v3 (v0 upper left, v1 upper right,
408408
/// v2 lower left, v3 lower right) at coordinates (s,t) and return the
409409
/// result. This is a template, and so should work for any types.
410410
template <class T, class Q>
@@ -418,7 +418,7 @@ bilerp(const T& v0, const T& v1, const T& v2, const T& v3, const Q& s, const Q&
418418

419419

420420

421-
/// Bilinearly interoplate arrays of values v0-v3 (v0 upper left, v1
421+
/// Bilinearly interpolate arrays of values v0-v3 (v0 upper left, v1
422422
/// upper right, v2 lower left, v3 lower right) at coordinates (s,t),
423423
/// storing the results in 'result'. These are all vectors, so do it
424424
/// for each of 'n' contiguous values (using the same s,t interpolants).
@@ -436,7 +436,7 @@ bilerp (const T *v0, const T *v1,
436436

437437

438438

439-
/// Bilinearly interoplate arrays of values v0-v3 (v0 upper left, v1
439+
/// Bilinearly interpolate arrays of values v0-v3 (v0 upper left, v1
440440
/// upper right, v2 lower left, v3 lower right) at coordinates (s,t),
441441
/// SCALING the interpolated value by 'scale' and then ADDING to
442442
/// 'result'. These are all vectors, so do it for each of 'n'
@@ -456,7 +456,7 @@ bilerp_mad (const T *v0, const T *v1,
456456

457457

458458

459-
/// Trilinearly interoplate arrays of values v0-v7 (v0 upper left top, v1
459+
/// Trilinearly interpolate arrays of values v0-v7 (v0 upper left top, v1
460460
/// upper right top, ...) at coordinates (s,t,r), and return the
461461
/// result. This is a template, and so should work for any types.
462462
template <class T, class Q>
@@ -473,7 +473,7 @@ trilerp (T v0, T v1, T v2, T v3, T v4, T v5, T v6, T v7, Q s, Q t, Q r)
473473

474474

475475

476-
/// Trilinearly interoplate arrays of values v0-v7 (v0 upper left top, v1
476+
/// Trilinearly interpolate arrays of values v0-v7 (v0 upper left top, v1
477477
/// upper right top, ...) at coordinates (s,t,r),
478478
/// storing the results in 'result'. These are all vectors, so do it
479479
/// for each of 'n' contiguous values (using the same s,t,r interpolants).
@@ -493,7 +493,7 @@ trilerp (const T *v0, const T *v1, const T *v2, const T *v3,
493493

494494

495495

496-
/// Trilinearly interoplate arrays of values v0-v7 (v0 upper left top, v1
496+
/// Trilinearly interpolate arrays of values v0-v7 (v0 upper left top, v1
497497
/// upper right top, ...) at coordinates (s,t,r),
498498
/// SCALING the interpolated value by 'scale' and then ADDING to
499499
/// 'result'. These are all vectors, so do it for each of 'n'
@@ -539,7 +539,7 @@ inline OIIO_HOSTDEVICE void evalBSplineWeightDerivs (T dw[4], T fraction)
539539

540540

541541

542-
/// Bicubically interoplate arrays of pointers arranged in a 4x4 pattern
542+
/// Bicubically interpolate arrays of pointers arranged in a 4x4 pattern
543543
/// with val[0] pointing to the data in the upper left corner, val[15]
544544
/// pointing to the lower right) at coordinates (s,t), storing the
545545
/// results in 'result'. These are all vectors, so do it for each of
@@ -575,7 +575,7 @@ ifloor (float x)
575575
/// Return (x-floor(x)) and put (int)floor(x) in *xint. This is similar
576576
/// to the built-in modf, but returns a true int, always rounds down
577577
/// (compared to modf which rounds toward 0), and always returns
578-
/// frac >= 0 (comapred to modf which can return <0 if x<0).
578+
/// frac >= 0 (compared to modf which can return <0 if x<0).
579579
inline OIIO_HOSTDEVICE float
580580
floorfrac (float x, int *xint)
581581
{

0 commit comments

Comments
 (0)