|
@@ -247,6 +247,18 @@ public:
|
|
|
return *this;
|
|
return *this;
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
+ // ATOMIC BEGIN
|
|
|
|
|
+ Vector3 ClampedLerp(const Vector3& rhs, float t) const
|
|
|
|
|
+ {
|
|
|
|
|
+ if (t > 1)
|
|
|
|
|
+ t = 1;
|
|
|
|
|
+ else if (t < 0)
|
|
|
|
|
+ t = 0;
|
|
|
|
|
+
|
|
|
|
|
+ return *this * (1.0f - t) + rhs * t;
|
|
|
|
|
+ }
|
|
|
|
|
+ // ATOMIC END
|
|
|
|
|
+
|
|
|
/// Return float data.
|
|
/// Return float data.
|
|
|
const float* Data() const { return &x_; }
|
|
const float* Data() const { return &x_; }
|
|
|
|
|
|