Example #1
0
		public static Segmento3D AplicarTransformacion(Segmento3D Segmento, Escalado Escalado)
		{
			return new Segmento3D(new Punto3D(Segmento.ExtremoInicial.X * Escalado.Escalado.X, Segmento.ExtremoInicial.Y * Escalado.Escalado.Y, Segmento.ExtremoInicial.Z * Escalado.Escalado.Z), new Punto3D(Segmento.ExtremoFinal.X * Escalado.Escalado.X, Segmento.ExtremoFinal.Y * Escalado.Escalado.Y, Segmento.ExtremoFinal.Z * Escalado.Escalado.Z));
		}
Example #2
0
		public static Segmento3D AplicarTransformacion(Segmento3D Segmento, Traslacion Traslacion)
		{
			return new Segmento3D(new Punto3D(Segmento.ExtremoInicial.X + Traslacion.Traslacion.X, Segmento.ExtremoInicial.Y + Traslacion.Traslacion.Y, Segmento.ExtremoInicial.Z + Traslacion.Traslacion.Z), new Punto3D(Segmento.ExtremoFinal.X + Traslacion.Traslacion.X, Segmento.ExtremoFinal.Y + Traslacion.Traslacion.Y, Segmento.ExtremoFinal.Z + Traslacion.Traslacion.Z));
		}
		public static Segmento3D AplicarTransformacion(Segmento3D Segmento, Transformacion3D Transformacion)
		{
			return new Segmento3D(new Punto3D(Transformacion.Matriz * Segmento.ExtremoInicial.Matriz), new Punto3D(Transformacion.Matriz * Segmento.ExtremoFinal.Matriz));
		}