public AnimationCurveTpl(AnimationCurveTpl <T> copy) :
     this(copy.Curve)
 {
     PreInfinity   = copy.PreInfinity;
     PostInfinity  = copy.PostInfinity;
     RotationOrder = copy.RotationOrder;
 }
Example #2
0
 public FloatCurve(string path)
 {
     Curve     = new AnimationCurveTpl <Float>(true);
     Attribute = string.Empty;
     Path      = path;
     ClassID   = 0;
     Script    = default;
 }
Example #3
0
 public FloatCurve(string path, IReadOnlyList <KeyframeTpl <Float> > keyframes)
 {
     Curve     = new AnimationCurveTpl <Float>(keyframes);
     Attribute = string.Empty;
     Path      = path;
     ClassID   = 0;
     Script    = default;
 }
        public AnimationCurveTpl(AnimationCurveTpl <T> copy)
        {
            Curve = new List <KeyframeTpl <T> >(copy.Curve.Count);
            foreach (KeyframeTpl <T> keyframe in copy.Curve)
            {
                KeyframeTpl <T> keyframeCopy = new KeyframeTpl <T>(keyframe);
                Curve.Add(keyframeCopy);
            }

            PreInfinity   = copy.PreInfinity;
            PostInfinity  = copy.PostInfinity;
            RotationOrder = copy.RotationOrder;
        }
 public Vector3Curve(string path)
 {
     Curve = new AnimationCurveTpl <Vector3f>(2, 2, 4);
     Path  = path;
 }
Example #6
0
 public QuaternionCurve(string path)
 {
     Curve = new AnimationCurveTpl <Quaternionf>(true);
     Path  = path;
 }
Example #7
0
 public Vector3Curve(string path, IReadOnlyList <KeyframeTpl <Vector3f> > keyframes)
 {
     Curve = new AnimationCurveTpl <Vector3f>(keyframes);
     Path  = path;
 }
Example #8
0
 public QuaternionCurve(string path, IReadOnlyList <KeyframeTpl <Quaternionf> > keyframes)
 {
     Curve = new AnimationCurveTpl <Quaternionf>(keyframes);
     Path  = path;
 }