minor API cleanup of SwingLimitFunction API

This commit is contained in:
Andrew Meadows 2016-03-10 13:48:32 -08:00
parent df9ccf76ab
commit 6ebb94b1f4
2 changed files with 2 additions and 12 deletions

View file

@ -24,15 +24,8 @@ const int LAST_CLAMP_NO_BOUNDARY = 0;
const int LAST_CLAMP_HIGH_BOUNDARY = 1;
SwingTwistConstraint::SwingLimitFunction::SwingLimitFunction() {
setCone(PI);
}
void SwingTwistConstraint::SwingLimitFunction::setCone(float maxAngle) {
_minDots.clear();
float minDot = glm::clamp(maxAngle, MIN_MINDOT, MAX_MINDOT);
_minDots.push_back(minDot);
// push the first value to the back to establish cyclic boundary conditions
_minDots.push_back(minDot);
_minDots.push_back(-1.0f);
_minDots.push_back(-1.0f);
}
void SwingTwistConstraint::SwingLimitFunction::setMinDots(const std::vector<float>& minDots) {

View file

@ -59,9 +59,6 @@ public:
public:
SwingLimitFunction();
/// \brief use a uniform conical swing limit
void setCone(float maxAngle);
/// \brief use a vector of lookup values for swing limits
void setMinDots(const std::vector<float>& minDots);