[HOpenGL] Vector3 <-> Vertex3

jamin1001 jamin1001 at yahoo.com
Fri Jan 5 07:59:26 EST 2007


Never mind, the following can be done w/ pattern matching:


vertexToVector :: Vertex3 a -> Vector3 a
vertexToVector (Vertex3 x y z) = Vector3 x y z





jamin1001 wrote:
> 
> Hello,
> 
> I am trying to use the GLU function unProject, which
> returns a Vertex3, but I want a Vector3.  How do I
> convert Vertex3, or get at the coordinate values?
> 
> Jamin
>  
> 
> __________________________________________________
> Do You Yahoo!?
> Tired of spam?  Yahoo! Mail has the best spam protection around 
> http://mail.yahoo.com 
> _______________________________________________
> HOpenGL mailing list
> HOpenGL at haskell.org
> http://www.haskell.org/mailman/listinfo/hopengl
> 
> 

-- 
View this message in context: http://www.nabble.com/Vector3-%3C-%3E-Vertex3-tf2916372.html#a8177524
Sent from the Haskell - HOpenGL mailing list archive at Nabble.com.



More information about the HOpenGL mailing list