[Gllug] Algorithm question
Peter Childs
peterachilds at gmail.com
Tue Feb 27 12:20:02 UTC 2007
On 27/02/07, Adrian McMenamin <adrian at newgolddream.dyndns.info> wrote:
> Lots of interesting answers, all prompting me (or not) to renew my 25 year
> dead knowledge of matrix mathematics (always wondered why the Cambridge
> maths O level taught all that when it never appeared in any maths done at
> A level or University - now I know).
>
> But... is my simple solution of seeing of seeing if the red and green fall
> within the polygon described by the max and min red and green and then if
> the green and blue falls inside the polygon described by the max and min
> green and blue (all sides of the polygons are parallel to the x, y and z
> axes) - going to work?
>
>
Generally No.
However, If all sizes are parallel to the axes it will work yes. All
the complicated matrices transform the sides of the polygons so they
are parallel to the axis.
Peter.
--
Gllug mailing list - Gllug at gllug.org.uk
http://lists.gllug.org.uk/mailman/listinfo/gllug
More information about the GLLUG
mailing list