@@ -719,7 +719,7 @@ namespace RTE {
719719 // / Returns force vector in newtons of the specified Force record.
720720 // / @param n Force record index to get data from.
721721 // / @return Force vector in newtons of the specified Force record.
722- Vector GetForceVector (int n) {
722+ Vector GetForceVector (unsigned int n) {
723723 if (n > 0 && n < m_Forces.size ())
724724 return m_Forces[n].first ;
725725 else
@@ -733,7 +733,7 @@ namespace RTE {
733733 // / Returns offset vector in METERS (not pixels) of the specified Force record.
734734 // / @param n Force record index to get data from.
735735 // / @return Offset vector in meters of the specified Force record.
736- Vector GetForceOffset (int n) {
736+ Vector GetForceOffset (unsigned int n) {
737737 if (n > 0 && n < m_Forces.size ())
738738 return m_Forces[n].second ;
739739 else
@@ -742,14 +742,14 @@ namespace RTE {
742742
743743 // / Sets force vector in newtons of the specified Force record.
744744 // / @param n Force record index to get data from. New Vector force value in newtons.
745- void SetForceVector (int n, Vector v) {
745+ void SetForceVector (unsigned int n, Vector v) {
746746 if (n > 0 && n < m_Forces.size ())
747747 m_Forces[n].first = v;
748748 }
749749
750750 // / Sets offset vector in METERS (not pixels) of the specified Force record.
751751 // / @param n Force record index to get data from. New Vector offset value in meters.
752- void SetForceOffset (int n, Vector v) {
752+ void SetForceOffset (unsigned int n, Vector v) {
753753 if (n > 0 && n < m_Forces.size ())
754754 m_Forces[n].second = v;
755755 }
@@ -765,7 +765,7 @@ namespace RTE {
765765 // / Returns Impulse vector in newtons of the specified Impulse record.
766766 // / @param n Impulse record index to get data from.
767767 // / @return Impulse vector in newtons of the specified Impulse record.
768- Vector GetImpulseVector (int n) {
768+ Vector GetImpulseVector (unsigned int n) {
769769 if (n > 0 && n < m_ImpulseForces.size ())
770770 return m_ImpulseForces[n].first ;
771771 else
@@ -775,7 +775,7 @@ namespace RTE {
775775 // / Returns offset vector in METERS (not pixels) of the specified Impulse record.
776776 // / @param n Impulse record index to get data from.
777777 // / @return Offset vector in meters of the specified Impulse record.
778- Vector GetImpulseOffset (int n) {
778+ Vector GetImpulseOffset (unsigned int n) {
779779 if (n > 0 && n < m_ImpulseForces.size ())
780780 return m_ImpulseForces[n].second ;
781781 else
@@ -785,14 +785,14 @@ namespace RTE {
785785 // / Returns offset vector in METERS (not pixels) of the specified Impulse record.
786786 // / @param n Impulse record index to get data from.
787787 // / @return Offset vector in meters of the specified Impulse record.
788- void SetImpulseVector (int n, Vector v) {
788+ void SetImpulseVector (unsigned int n, Vector v) {
789789 if (n > 0 && n < m_ImpulseForces.size ())
790790 m_ImpulseForces[n].first = v;
791791 }
792792
793793 // / Sets offset vector in METERS (not pixels) of the specified Impulse record.
794794 // / @param n Impulse record index to get data from. New Vector offset value in meters.
795- void SetImpulseOffset (int n, Vector v) {
795+ void SetImpulseOffset (unsigned int n, Vector v) {
796796 if (n > 0 && n < m_ImpulseForces.size ())
797797 m_ImpulseForces[n].second = v;
798798 }
0 commit comments