public PassPoint(Vector3 point, Vector3 leftInterpolant, Vector3 rightInterpolant) { _point = point; _leftInterpolant = leftInterpolant; _rightInterpolant = rightInterpolant; _continuity = 0; }
private PassPoint(PassPoint point) { _point = point.Point; _leftInterpolant = point.LeftInterpolant; _rightInterpolant = point.RightInterpolant; _continuity = point.Continuity; }
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); }
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); }
public PassPoint WithContinuity(JointContinuity value) { _continuity = value; AdjustPointsForContinuity(ref _leftInterpolant, ref _rightInterpolant); return(new PassPoint(this)); }