FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

float2,float3,float4,Matrix

 
Post new topic   Reply to topic     Forum Index -> Deliria
View previous topic :: View next topic  
Author Message
danielrh



Joined: 10 May 2004
Posts: 5

PostPosted: Wed May 12, 2004 6:15 pm    Post subject: float2,float3,float4,Matrix Reply with quote

I've finished implementations of the float,float2,float3,float4 classes directly from nVidia's Cg.

Cg is such a useful language to write vector math in that I figured we should have a D port of the intrinsics in it.
so I wrote vec.d.
it allows swizzling and all of the Cg vector ops. People familiar with Cg will be happy that they can now use the same interface to write these things

http://cvs.sourceforge.net/viewcvs.py/deliria/deliria/vec.d


Also I have written a prelimiary vector class which I'm less happy with.
The idea is to have doubles or reals for position (to support long range rendering...) and 3 float3's for the rotation.
We should probably write some unit tests for the matrix class or something.
http://cvs.sourceforge.net/viewcvs.py/deliria/deliria/matrix.d
-Daniel
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic     Forum Index -> Deliria All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group