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 |