Struct ScrewSubhingeParams#
Defined in File PinSubhinge.h
Inheritance Relationships#
Base Type#
public Karana::Dynamics::PhysicalSubhingeParams(Struct PhysicalSubhingeParams)
Struct Documentation#
-
struct ScrewSubhingeParams : public Karana::Dynamics::PhysicalSubhingeParams#
Hold data related to a ScrewSubhinge.
Public Functions
-
ScrewSubhingeParams(const km::Vec3 &unit_axis, double pitch, bool prescribed = false)#
ScrewSubhingeParams constructor. The constructor is not meant to be called directly. Please use the create(…) method instead to create an instance.
- Parameters:
unit_axis – The unit axis for the ScrewSubhinge.
pitch – The pitch for the ScrewSubhinge.
prescribed – Whether the joint is prescribed or not
-
~ScrewSubhingeParams()#
Destructor.
-
ScrewSubhingeParams(const ScrewSubhingeParams&) = delete#
-
ScrewSubhingeParams &operator=(const ScrewSubhingeParams&) = delete#
Public Members
-
km::Vec3 unit_axis#
The unit axis for the ScrewSubhinge.
-
double pitch#
The pitch for the ScrewSubhinge.
-
bool prescribed = false#
Whether this ScrewSubhinge is prescribed or not.
Public Static Functions
-
static kc::ks_ptr<ScrewSubhingeParams> create(const km::Vec3 &unit_axis, double pitch, bool prescribed = false)#
Create an instance of ScrewSubhingeParams.
- Parameters:
unit_axis – The unit axis for the ScrewSubhinge.
pitch – The pitch for the ScrewSubhinge.
prescribed – Whether the joint is prescribed or not
- Returns:
A pointer to the newly created ScrewSubhingeParams.
-
ScrewSubhingeParams(const km::Vec3 &unit_axis, double pitch, bool prescribed = false)#