Ejemplo n.º 1
0
        /// <summary>
        /// Creates a deep copy of an existing orientation object.
        /// </summary>
        /// <param name="source">The source orientation for the copy.</param>
        private Orientation3D(Orientation3D source)
        {
            forwardVector = source.ForwardVector;
            downVector = source.downVector;

            angleMeasurement = source.angleMeasurement;
        }
Ejemplo n.º 2
0
        /// <summary>
        /// Instantiates a new Plotter.
        /// </summary>
        /// <param name="canvas">The Graphics object that we want to draw on.</param>
        /// <param name="pen">The pen we want to use to draw on the canvas.</param>
        /// <param name="cameraLocation">The location of the camera that we use to calculate perspective.</param>
        public Plotter3D(Graphics canvas, Pen pen, Point3D cameraLocation)
        {
            this.canvas = canvas;
            this.pen = pen;
            this.cameraLocation = cameraLocation;

            this.orientation = new Orientation3D();
        }