apps.lightrays.raytracer.scene.geometry
Class TexturedPlane

java.lang.Object
  extended by apps.lightrays.raytracer.scene.SceneObject
      extended by apps.lightrays.raytracer.scene.geometry.Plane
          extended by apps.lightrays.raytracer.scene.geometry.TexturedPlane

public class TexturedPlane
extends Plane

The Class TexturedPlane.


Constructor Summary
TexturedPlane(Point center, Vector perpendicular, OpticalProperties prop, int[] pixels, int width, int height)
          Instantiates a new textured plane.
 
Method Summary
 Colour getPixel(Point p)
          Gets the pixel.
 java.lang.String toString()
           
 
Methods inherited from class apps.lightrays.raytracer.scene.geometry.Plane
createShader, getNormal, intersect, setCenter, setPerpendicular
 
Methods inherited from class apps.lightrays.raytracer.scene.SceneObject
getOpticProperties, setOpticProperties, setScene
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

TexturedPlane

public TexturedPlane(Point center,
                     Vector perpendicular,
                     OpticalProperties prop,
                     int[] pixels,
                     int width,
                     int height)
Instantiates a new textured plane.

Parameters:
center - the center
perpendicular - the perpendicular
prop - the prop
pixels - the pixels
width - the width
height - the height
Method Detail

getPixel

public Colour getPixel(Point p)
Description copied from class: Plane
Gets the pixel.

Overrides:
getPixel in class Plane
Parameters:
p - the p
Returns:
the pixel

toString

public java.lang.String toString()
Overrides:
toString in class Plane