Example #1
0
        private VertexTransform CreateVertexTransform(CPosition position, CDimension dimension, CTransform transform)
        {
            Vector3 translation = new Vector3(position.X + transform.Translation.X, position.Y + transform.Translation.Y, position.Z + transform.Translation.Z);
            Vector3 scale       = new Vector3(dimension.Width * transform.Scale.X, dimension.Height * transform.Scale.Y, transform.Scale.Z);

            return(new VertexTransform(translation, scale, transform.Origin, transform.Rotation));
        }