Beispiel #1
0
        /// <summary>
        /// Translates any given geometry by the given displacements in the x, y,
        /// and z directions defined in WCS respectively.
        /// </summary>
        /// <param name="xTranslation">Displacement along X-axis.</param>
        /// <param name="yTranslation">Displacement along Y-axis.</param>
        /// <param name="zTranslation">Displacement along Z-axis.</param>
        /// <returns>Transformed Geometry.</returns>
        public DSGeometry Translate(double xTranslation, double yTranslation, double zTranslation)
        {
            DSVector direction = new DSVector(xTranslation, yTranslation, zTranslation);

            return(Translate(direction, direction.GetLength()));
        }
 /// <summary>
 /// Translates the coordinate system by the coordinates specified
 /// </summary>
 /// <param name="xTranslation">Translation in the x direction</param>
 /// <param name="yTranslation">Translation in the y direction</param>
 /// <param name="zTranslation">Translation in the z direction</param>
 /// <returns></returns>
 public DSCoordinateSystem Translate(double xTranslation, double yTranslation, double zTranslation)
 {
     DSVector direction = new DSVector(xTranslation, yTranslation, zTranslation);
     return Translate(direction, direction.GetLength());
 }