GrabPoseScore
(
translationScore
, rotationScore
, measureParameters
)
|
Creates a GrabPoseScore with the given values.
Signature
GrabPoseScore(float translationScore, float rotationScore, PoseMeasureParameters measureParameters) Parameters translationScore: floatÂ
The translational score
rotationScore: floatÂ
The rotational score
|
GrabPoseScore
(
fromPoint
, toPoint
, isInside
)
|
Calculates and creates a purely positional score.
This score has a rotational weight of 0.
Signature
GrabPoseScore(Vector3 fromPoint, Vector3 toPoint, bool isInside=false) Parameters fromPoint: Vector3Â
Desired point of measure
toPoint: Vector3Â
Ideal point of measure
isInside: boolÂ
If true, the translation is stored as a negative scalar
|
GrabPoseScore
(
poseA
, poseB
, offset
, measureParameters
)
|
Calculates and creates a score from a desired pose to a reference pose.
Signature
GrabPoseScore(in Pose poseA, in Pose poseB, in Pose offset, PoseMeasureParameters measureParameters) Parameters poseA: in PoseÂ
The desired root pose
poseB: in PoseÂ
The reference root pose
offset: in PoseÂ
Offset from the poses for scoring
|
Max
: readonly GrabPoseScore |
Signature
readonly GrabPoseScore Max |
IsBetterThan
(
referenceScore
)
|
Calculates if the GrabPoseScore is better than other GrabPoseScore by comparing the Translational and Rotational scores based on their weights.
Signature
bool IsBetterThan(GrabPoseScore referenceScore) Parameters Returns boolÂ
True of this score is better than the provided one, false otherwise
|
IsValid
()
|
Signature
bool IsValid() Returns bool |
Lerp
(
from
, to
, t
)
|
Linearly interpolate two scores by individually interpolating its components.
Signature
static GrabPoseScore Lerp(in GrabPoseScore from, in GrabPoseScore to, float t) Parameters t: floatÂ
Interpolation factor
Returns GrabPoseScore |