Ejemplo n.º 1
0
        public Draw3DObject(Panel _panel)
        {
            panel = _panel;

            float oneOverd = oneOverdFactor / (2 * panel.Height / 4);

            matrix = Matrix3.AzimuthElevation(elevation, azimuth, oneOverd);
        }
Ejemplo n.º 2
0
        public DrawBox(Panel _panel)
            : base(_panel)
        {
            // override default matrix based on side:
            float oneOverd = oneOverdFactor / (2 * side);

            matrix = Matrix3.AzimuthElevation(elevation, azimuth, oneOverd);
        }
Ejemplo n.º 3
0
        public DrawCoordinateAxes(Panel _panel, float _side)
            : base(_panel)
        {
            side = _side;

            // override default matrix based on side:
            float oneOverd = oneOverdFactor / (2 * side);

            matrix = Matrix3.AzimuthElevation(elevation, azimuth, oneOverd);
        }
Ejemplo n.º 4
0
        public void DrawRobotView(Graphics g)
        {
            DrawBox drawBox = new DrawBox(panel, side);

            float oneOverd = oneOverdFactor / (2 * side);

            drawBox.matrix = Matrix3.AzimuthElevation(elevation, azimuth, oneOverd)
                             * Matrix3.Rotate3X(thetaX) * Matrix3.Rotate3Y(thetaY) * Matrix3.Rotate3Z(thetaZ);

            drawBox.AddBox(g);

            AddAxes(g);
        }