Ejemplo n.º 1
0
        public static ControlPointArrayDx Generate(int count, float minX, float maxX, float minY, float maxY, float minZ, float maxZ, float pointOfView, SizeF viewPortSize)
        {
            ControlPointArrayDx p = new ControlPointArrayDx(count);

            p.PointOfView  = pointOfView;
            p.ViewPortSize = viewPortSize;
            p.Generate(minX, maxX, minY, maxY, minZ, maxZ);
            return(p);
        }
Ejemplo n.º 2
0
        public ControlPointArrayDx Reduce(float t)
        {
            ControlPointArrayDx result = new ControlPointArrayDx(Count - 1);

            result.PointOfView  = PointOfView;
            result.ViewPortSize = ViewPortSize;
            result.Transform    = Transform;
            int count = Count;

            for (var index = 0; index < count - 1; ++index)
            {
                result._points[index] = Vector4.Lerp(_points[index], _points[index + 1], t);
            }
            return(result);
        }