示例#1
0
        public void Start(Vector3 p1, Vector3 p2, Vector3 t1, Vector3 t2, Vector3 u1, Vector3 u2, float field1, float field2, float aspect1, float aspect2, float near1, float near2, float far1, float far2)
        {
            _pinterp      = new Vec3InterpolatorConstantStep(_step);
            _tinterp      = new Vec3InterpolatorConstantStep(_step);
            _uinterp      = new Vec3InterpolatorConstantStep(_step);
            _fieldinterp  = new FloatInterpolatorConstantStep(_step);
            _aspectinterp = new FloatInterpolatorConstantStep(_step);
            _nearinterp   = new FloatInterpolatorConstantStep(_step);
            _farinterp    = new FloatInterpolatorConstantStep(_step);

            _pinterp.Start(p1, p2, _step);
            _tinterp.Start(t1, t2, _step);
            _uinterp.Start(u1, u2, _step);
            _fieldinterp.Start(field1, field2, _step);
            _aspectinterp.Start(aspect1, aspect2, _step);
            _nearinterp.Start(near1, near2, _step);
            _farinterp.Start(far1, far2, _step);
        }
        public void Start(Vector3 p1, Vector3 p2, Vector3 t1, Vector3 t2, Vector3 u1, Vector3 u2, float field1, float field2, float aspect1, float aspect2, float near1, float near2, float far1, float far2)
        {
            _pinterp = new Vec3InterpolatorConstantStep(_step);
            _tinterp = new Vec3InterpolatorConstantStep(_step);
            _uinterp = new Vec3InterpolatorConstantStep(_step);
            _fieldinterp = new FloatInterpolatorConstantStep(_step);
            _aspectinterp = new FloatInterpolatorConstantStep(_step);
            _nearinterp = new FloatInterpolatorConstantStep(_step);
            _farinterp = new FloatInterpolatorConstantStep(_step);

            _pinterp.Start(p1, p2, _step);
            _tinterp.Start(t1, t2, _step);
            _uinterp.Start(u1, u2, _step);
            _fieldinterp.Start(field1, field2, _step);
            _aspectinterp.Start(aspect1, aspect2, _step);
            _nearinterp.Start(near1, near2, _step);
            _farinterp.Start(far1, far2, _step);
        }