Example #1
0
        /// <summary>
        /// Required parameters:
        /// (Location)center_location
        /// (Location)pointing_towards
        /// (UnitVector)orthogonal_direction
        /// (double)side_length
        /// </summary>
        /// <param name='shadowObject'>
        /// Shadow object containing parameters from summary.
        /// </param>
        protected void shadowFac_Center_and_Sidelength(ShadowScientrace.ShadowObject3d shadowObject)
        {
            //User values(s)
            Scientrace.Location   center_location      = shadowObject.getLocation("center_location");
            Scientrace.Location   pointing_towards     = shadowObject.getLocation("pointing_towards");
            Scientrace.UnitVector orthogonal_direction = shadowObject.getUnitVector("orthogonal_direction");
            double side_length = shadowObject.getDouble("side_length");

            //construct!
            this.init_Center_and_Sidelength(center_location, pointing_towards, orthogonal_direction, side_length);
        }