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; }
//posicion de la figura en la figura Animada public FiguraPosicionada(PointZ posicion, Figura figura) { Figura = figura; Posicion = posicion; }