49 [[nodiscard]] std::vector<size_t>
getChildrenJoints(
size_t jointId,
bool recursive =
true)
const;
54 [[nodiscard]]
bool isAncestor(
size_t jointId,
size_t ancestorJointId)
const;
69 if constexpr (std::is_same_v<T, U>) {
JointListT< float > JointList
decltype(auto) cast(const ContainerType< ObjectType > &originalContainer)
Casts the scalar type of objects in a container that support the cast<>() method.
SkeletonT< U > cast() const
Returns a copy of this skeleton with all numeric values converted to scalar type U.
size_t commonAncestor(size_t joint1, size_t joint2) const
Returns the lowest common ancestor of two joints in the hierarchy, or kInvalidIndex if either joint i...
size_t getJointIdByName(std::string_view name) const
Returns the index of a joint with the given name, or kInvalidIndex if not found.
SkeletonT(JointList joints)
SkeletonT(const SkeletonT &other)=default
SkeletonT & operator=(SkeletonT &&other) noexcept=default
SkeletonT(SkeletonT &&other) noexcept=default
std::vector< size_t > getChildrenJoints(size_t jointId, bool recursive=true) const
Returns indices of child joints of the specified joint.
SkeletonT & operator=(const SkeletonT &other)=default
std::vector< std::string > getJointNames() const
bool isAncestor(size_t jointId, size_t ancestorJointId) const
Returns true if ancestorJointId is an ancestor of jointId.
bool isSameOrAdjacentJoints(size_t joint1, size_t joint2) const
Returns true if the two joints are the same, or one is the direct parent of the other.