Click here to Skip to main content
15,891,513 members
Articles / Programming Languages / C#

Space and Matrix Transformations - Building a 3D Engine

Rate me:
Please Sign up or sign in to vote.
4.84/5 (13 votes)
4 Sep 2009CPOL8 min read 94.9K   6.1K   101  
This Article Describes How to Navigate 3D Space
using System;
using System.Collections.Generic;
using System.Text;
using AGE_Engine3D.Math;

namespace AGE_Engine3D.RenderObjects
{
    public struct Vertex
    {
        public bool IsNormal;
        public bool IsColor;
        public bool IsTextured;

        public AGE_Vector3Df Position;
        private AGE_Vector3Df _Normal;
        private AGE_Color4f _Color;
        private AGE_TextureCoordinate2f _TextureCoor;

        public AGE_Vector3Df Normal
        {
            get { return this._Normal; }
            set
            {
                this._Normal = value;
                this.IsNormal = true;
            }
        }
        public AGE_Color4f Color
        {
            get { return this._Color; }
            set
            {
                this._Color = value;
                this.IsColor = true;
            }
        }
        public AGE_TextureCoordinate2f TextureCoor
        {
            get { return this._TextureCoor; }
            set { this._TextureCoor = value; }
        }
    }
}

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


Written By
Engineer Lea+Elliott, Inc.
United States United States
I am a licensed Electrical Engineer at Lea+Elliott, Inc. We specialize in the planning, procurement and implementation of transportation systems, with special emphasis on automated and emerging technologies.

Comments and Discussions