Ejemplo n.º 1
0
 public PassPoint(Vector3 point, Vector3 leftInterpolant, Vector3 rightInterpolant)
 {
     _point            = point;
     _leftInterpolant  = leftInterpolant;
     _rightInterpolant = rightInterpolant;
     _continuity       = 0;
 }
Ejemplo n.º 2
0
 private PassPoint(PassPoint point)
 {
     _point            = point.Point;
     _leftInterpolant  = point.LeftInterpolant;
     _rightInterpolant = point.RightInterpolant;
     _continuity       = point.Continuity;
 }
Ejemplo n.º 3
0
 public PassPoint(Vector3 point, Vector3 leftInterpolant, bool isC2)
 {
     _point            = point;
     _leftInterpolant  = leftInterpolant;
     _rightInterpolant = Vector3.zero;
     _continuity       = (JointContinuity)(1 + System.Convert.ToInt32(isC2));
     AdjustPointsForContinuity(ref _leftInterpolant, ref _rightInterpolant);
 }
Ejemplo n.º 4
0
 public PassPoint(Vector3 point, JointContinuity continuity)
 {
     _point            = point;
     _leftInterpolant  = point + .1f * Vector3.right;
     _rightInterpolant = point + .1f * Vector3.left;
     _continuity       = continuity;
     AdjustPointsForContinuity(ref _leftInterpolant, ref _rightInterpolant);
 }
Ejemplo n.º 5
0
 public PassPoint WithContinuity(JointContinuity value)
 {
     _continuity = value;
     AdjustPointsForContinuity(ref _leftInterpolant, ref _rightInterpolant);
     return(new PassPoint(this));
 }