> On 10/06/10 23:37, Jussi Lahtinen wrote:
> > I'm used to do this kind of things like this:
> >
> > Public Sub _new(Optional x As Float = -1, Optional y As Float = -1
> > ,Optional z As Float = -1)
> >
> > If x <> -1 Then v[0] = x
> > If y <> -1 Then v[1] = y
> > If z <> -1 Then v[2] = z
> >
On 10/06/10 23:37, Jussi Lahtinen wrote:
> I'm used to do this kind of things like this:
>
> Public Sub _new(Optional x As Float = -1, Optional y As Float = -1
> ,Optional z As Float = -1)
> If x <> -1 Then v[0] = x
> If y <> -1 Then v[1] = y
> If z <> -1 Then v[2] = z
> End
>
>
> Jussi
>
Tha
I'm used to do this kind of things like this:
Public Sub _new(Optional x As Float = -1, Optional y As Float = -1
,Optional z As Float = -1)
If x <> -1 Then v[0] = x
If y <> -1 Then v[1] = y
If z <> -1 Then v[2] = z
End
Jussi
2010/6/10 Benoît Minisini :
>> On 10/06/10 15:38, Charlie Reinl wr
> On 10/06/10 15:38, Charlie Reinl wrote:
> > Am Donnerstag, den 10.06.2010, 14:37 +0800 schrieb Werner:
> >> I'm trying to implement a simple class that creates a Float[3] array. I
> >> would like to give the user of the class an optional opportunity to fill
> >> the array with data when the class
On 10/06/10 15:38, Charlie Reinl wrote:
> Am Donnerstag, den 10.06.2010, 14:37 +0800 schrieb Werner:
>
>> I'm trying to implement a simple class that creates a Float[3] array. I
>> would like to give the user of the class an optional opportunity to fill
>> the array with data when the class is i
Am Donnerstag, den 10.06.2010, 14:37 +0800 schrieb Werner:
> I'm trying to implement a simple class that creates a Float[3] array. I
> would like to give the user of the class an optional opportunity to fill
> the array with data when the class is instantiated.
>
>
I'm trying to implement a simple class that creates a Float[3] array. I
would like to give the user of the class an optional opportunity to fill
the array with data when the class is instantiated.
' Gambas class file
' Vector3f Class
Public v As New Float[