94 |
|
StuntDouble* getStuntDouble() { return sd_; } |
95 |
|
|
96 |
|
/** |
97 |
< |
* Returns the global index of this stuntdouble. |
97 |
> |
* Returns the global index of this stuntRealType. |
98 |
|
* @return the global index of this stuntdouble |
99 |
|
*/ |
100 |
|
int getGlobalIndex() { |
102 |
|
} |
103 |
|
|
104 |
|
/** |
105 |
< |
* Sets the global index of this stuntdouble. |
105 |
> |
* Sets the global index of this stuntRealType. |
106 |
|
* @param new global index to be set |
107 |
|
*/ |
108 |
|
void setGlobalIndex(int index) { |
454 |
|
} |
455 |
|
|
456 |
|
/** |
457 |
< |
* Sets the previous euler angles of this stuntdouble. |
457 |
> |
* Sets the previous euler angles of this stuntRealType. |
458 |
|
* @param euler new euler angles |
459 |
|
* @see #getEuler |
460 |
|
* @note actual storage data is rotation matrix |
692 |
|
* Returns the gradient of this stuntdouble |
693 |
|
* @return the gradient of this stuntdouble |
694 |
|
*/ |
695 |
< |
std::vector<double> getGrad() { |
695 |
> |
std::vector<RealType> getGrad() { |
696 |
|
return sd_->getGrad(); |
697 |
|
} |
698 |
|
|
720 |
|
} |
721 |
|
|
722 |
|
/** Returns the mass of this stuntdouble */ |
723 |
< |
double getMass() { |
723 |
> |
RealType getMass() { |
724 |
|
return sd_->getMass(); |
725 |
|
} |
726 |
|
|
728 |
|
* Sets the mass of this stuntdoulbe |
729 |
|
* @param mass the mass to be set |
730 |
|
*/ |
731 |
< |
void setMass(double mass) { |
731 |
> |
void setMass(RealType mass) { |
732 |
|
sd_->setMass(mass); |
733 |
|
} |
734 |
|
|
737 |
|
return sd_->getType(); |
738 |
|
} |
739 |
|
|
740 |
< |
/** Sets the name of this stuntdouble*/ |
740 |
> |
/** Sets the name of this stuntRealType*/ |
741 |
|
void setType(const std::string& name) { |
742 |
|
sd_->setType(name); |
743 |
|
} |