Welcome, Guest. Please login or register.

Login with username, password and session length

 
Advanced search

11991 Posts in 1587 Topics- by 3509 Members - Latest Member: lioneltenel

27. May 2012, 12:17:36 am
Xith3D CommunityGeneral CategoryFeature Requests & Brilliant Ideas (Moderators: Marvin Fröhlich, 'n ddrylliog)Missing method in Tuple3f
Pages: [1]
Print
Author Topic: Missing method in Tuple3f  (Read 1385 times)
'n ddrylliog
Moderator
Guru
*****
Offline Offline

Posts: 1188



View Profile WWW Email
« on: 25. August 2007, 09:18:35 am »

Hey Marvin,

could we have mul() methods in Tuple3f ?

So that we could do
Code:
tuple1.mul(tuple2);
or
Code:
tuple1.mul(tuple1, tuple2);

instead of
Code:
tuple1.set(tuple1.x * tuple2.x, tuple1.y * tuple2.y, tuple1.z * tuple2.z);

?
Logged
Marvin Fröhlich
Xith Lord
Administrator
Guru
*****
Offline Offline

Posts: 4381


May the 4th, be with you...


View Profile
« Reply #1 on: 25. August 2007, 11:53:16 am »

Yes, this method makes sense. Thank you very much for asking before adding. Well, actually I needed an additional method in vecmath myself. So I simply added this method for you.

Marvin
Logged
'n ddrylliog
Moderator
Guru
*****
Offline Offline

Posts: 1188



View Profile WWW Email
« Reply #2 on: 25. August 2007, 03:49:24 pm »

Ah, very cool Marvin. Thank you.

(In fact I precisely asked for that : I quite don't like SVN and releases messing around. You happen to release OpenMali more often than me, even if I'm the initiator of the project.. huh ^^).
Logged
Pages: [1]
Print
Jump to:  

Theme orange-lt created by panic