Exemplo n.º 1
0
 public AnimationCurveTpl(AnimationCurveTpl <T> copy) :
     this(copy.Curve)
 {
     PreInfinity   = copy.PreInfinity;
     PostInfinity  = copy.PostInfinity;
     RotationOrder = copy.RotationOrder;
 }
Exemplo n.º 2
0
 public FloatCurve(string path)
 {
     Curve     = new AnimationCurveTpl <Float>(true);
     Attribute = string.Empty;
     Path      = path;
     ClassID   = 0;
     Script    = default;
 }
Exemplo n.º 3
0
 public FloatCurve(string path, IReadOnlyList <KeyframeTpl <Float> > keyframes)
 {
     Curve     = new AnimationCurveTpl <Float>(keyframes);
     Attribute = string.Empty;
     Path      = path;
     ClassID   = 0;
     Script    = default;
 }
Exemplo n.º 4
0
        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;
        }
Exemplo n.º 5
0
 public Vector3Curve(string path)
 {
     Curve = new AnimationCurveTpl <Vector3f>(2, 2, 4);
     Path  = path;
 }
Exemplo n.º 6
0
 public QuaternionCurve(string path)
 {
     Curve = new AnimationCurveTpl <Quaternionf>(true);
     Path  = path;
 }
Exemplo n.º 7
0
 public Vector3Curve(string path, IReadOnlyList <KeyframeTpl <Vector3f> > keyframes)
 {
     Curve = new AnimationCurveTpl <Vector3f>(keyframes);
     Path  = path;
 }
Exemplo n.º 8
0
 public QuaternionCurve(string path, IReadOnlyList <KeyframeTpl <Quaternionf> > keyframes)
 {
     Curve = new AnimationCurveTpl <Quaternionf>(keyframes);
     Path  = path;
 }