Backup/Utilities/Cube.cs

(开头部分) 5KB

这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Drawing;

namespace WindowsFormsApplication1.Utilities
{
    public class Cube
    {
        #region Varibles
        private Vertex[] m_vertice = new Vertex[24];
        private Matrix4 m_world = Matrix4.Identity;
        private Face[] m_faces = new Face[12];
        private Bitmap m_tex;
        #endregion

        #region Properties
        public Matrix4 World
        {
            get
            {
                return m_world;
            }
            set
            {
                m_world = value;
            }
        }
        public Bitmap Texture
        {
            get
            {
                return m_tex;
            }
            set
            {
                if (m_tex != null)
                {
                    m_tex.Dispose();
                }
                m_tex = value;
            }
        }

        public Face[] Faces
        {
            get
            {
                return m_faces;
            }
        }
        #endregion

        public Cube(Vector3 min, Vector3 max)
        {
            double minX = Math.Min(min.X, max.X);
            double minY = Math.Min(min.Y, max.Y);
            double minZ = Math.Min(min.Z, max.Z);
            double maxX = Math.Max(min.X, max.X);
后面还有 80 行代码,解锁后查看完整代码

24 小时内免费解锁 3 个项目,之后 1 积分/个。 规则说明

AI 解读

登录后可用,每次 10 积分,解读结果公开显示在下面。

还没有人解读过这个文件。