예제 #1
0
 public virtual Posture PointingForward()
 {
     return(new FunctionalPosture(body =>
                                  RatioCalculator.DifferenceDistanceRatio(
                                      body.YDiff(From, To),
                                      body.DistanceBetween(To, From))));
 }
예제 #2
0
 public virtual Posture ToTheRightOf(JointType other)
 {
     return(new FunctionalPosture(body =>
                                  RatioCalculator.DifferenceDistanceRatio(
                                      body.XDiff(Joint, other),
                                      body.PathLengthBetween(Joint, other))));
 }
예제 #3
0
 public virtual Posture PointingBackwards()
 {
     return(new FunctionalPosture(body =>
                                  RatioCalculator.DifferenceDistanceRatio(
                                      body.ZDiff(To, From),
                                      body.DistanceBetween(To, From))));
 }
예제 #4
0
 public virtual Posture Before(JointType other)
 {
     return(new FunctionalPosture(body =>
                                  RatioCalculator.DifferenceDistanceRatio(
                                      body.ZDiff(other, Joint),
                                      body.PathLength(other, Joint))));
 }