예제 #1
0
		public Pixel SelectPixel(PointZ externPoint)
		{
			PointZ internalPoint = new PointZ(externPoint.X - Posicion.X, externPoint.Y - Posicion.Y, externPoint.Z - Posicion.Z);
			Pixel selectedPixel = null;
			var figuraPixelada = Figura.GetEnumerator();
			while (selectedPixel == null && figuraPixelada.MoveNext()) {
				if (figuraPixelada.Current.Localizacion.Equals(internalPoint))
					selectedPixel = figuraPixelada.Current;
			}
			return selectedPixel;
		}
예제 #2
0
		//posicion de la figura en la figura Animada
		public FiguraPosicionada(PointZ posicion, Figura figura)
		{
			Figura = figura;
			Posicion = posicion;
		}