Re: Vector3 <-> Vertex3

jamin1001 <[email protected]>
Newsgroups gmane.comp.lang.haskell.hopengl
Message-ID <[email protected]>
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
> [email protected]
> 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.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.