Package primitives

  • Class Summary
    Class Description
    Colour
    This class represents a digital colour, with the added functionality of adding and scaling colours.
    Factors
    This class represents attenuation factors for the red, green, and blue channels.
    LineSegment
    A straight line segment between two points.
    Material
    This class contains all the configurations which affect how light interacts with some surface.
    NonZeroVector
    The NonZeroVector class represents a NonZeroVector with it's base at the origin and it's head at the Point 'head'.
    NormalizedVector
    This class represents a special kind of NonZeroVector whose length is one.
    Point
    The Point class represents a Point in three dimensional space.
    Ray
    The Ray class represents a ray with it's base at the Point 'source' and shoots off in direction pointed at by NonZeroVector 'direction'.
    Triple
    A class that has three values, (x, y, z)
    Vector
    The Vector class represents a NonZeroVector with the single difference that the VectorBase can be the zero vector.
  • Exception Summary
    Exception Description
    ZeroVectorException
    This exception is thrown when an attempt is made to create a zero vector.