|
|
|
|
|
|
| |
| |
|
|
|
|
| |
| |
|
|
Hi all.
In setting up some billiard balls in a triangle formation, I discovered that
I needed to make the z co-ordinate the square root of 3.
I have been using < 0, 0, 1.713> which is fine, but I was wondering if there
is anyway of doing it like < 0, 0, SQRT(3) > or some such.
Thanks
Post a reply to this message
|
|
| |
| |
|
|
|
|
| |
| |
|
|
"RareBeast" <mdc### [at] bigpondcom> wrote:
> Hi all.
>
> In setting up some billiard balls in a triangle formation, I discovered that
> I needed to make the z co-ordinate the square root of 3.
>
> I have been using < 0, 0, 1.713> which is fine, but I was wondering if there
> is anyway of doing it like < 0, 0, SQRT(3) > or some such.
>
> Thanks
<0,0,pow(3,1/3)>
-tgq
Post a reply to this message
|
|
| |
| |
|
|
From: Larry Hudson
Subject: Re: Using mathematical functions in co-ordinates
Date: 9 Feb 2006 22:37:48
Message: <43ec0a8c$1@news.povray.org>
|
|
|
| |
| |
|
|
Trevor G Quayle wrote:
> "RareBeast" <mdc### [at] bigpondcom> wrote:
...
>>I have been using < 0, 0, 1.713> which is fine, but I was wondering if there
>>is anyway of doing it like < 0, 0, SQRT(3) > or some such.
>>
>>Thanks
>
> <0,0,pow(3,1/3)>
>
'Scuse me? That would be cube root not square root. Try pow(3,1/2).
-=- Larry -=-
Post a reply to this message
|
|
| |
| |
|
|
From: Trevor G Quayle
Subject: Re: Using mathematical functions in co-ordinates
Date: 9 Feb 2006 22:51:12
Message: <43ec0db0$1@news.povray.org>
|
|
|
| |
| |
|
|
"Larry Hudson" <org### [at] yahoocom> wrote in message
news:43ec0a8c$1@news.povray.org...
> Trevor G Quayle wrote:
>> "RareBeast" <mdc### [at] bigpondcom> wrote:
> ...
>>>I have been using < 0, 0, 1.713> which is fine, but I was wondering if
>>>there
>>>is anyway of doing it like < 0, 0, SQRT(3) > or some such.
>>>
>>>Thanks
>>
>> <0,0,pow(3,1/3)>
>>
>
> 'Scuse me? That would be cube root not square root. Try pow(3,1/2).
>
Yes, bit tired and misread the 3 part as wanting the cube root.
RareBeast: Just so you know, the pow() function is used for all powers and
roots (including cube roots...), the '^' operator having been removed a few
versions ago.
-tgq
Post a reply to this message
|
|
| |
| |
|
|
From: kurtz le pirate
Subject: Re: Using mathematical functions in co-ordinates
Date: 10 Feb 2006 03:04:12
Message: <43ec48fc$1@news.povray.org>
|
|
|
| |
| |
|
|
web.43ebe66896499cdbea871fd0@news.povray.org...
> Hi all.
>
> In setting up some billiard balls in a triangle formation, I
> discovered that
> I needed to make the z co-ordinate the square root of 3.
>
> I have been using < 0, 0, 1.713> which is fine, but I was wondering
> if there
> is anyway of doing it like < 0, 0, SQRT(3) > or some such.
>
where is the problem ?
sqrt() is a povray function. read
http://www.povray.org/documentation/view/3.6.1/228/
Post a reply to this message
|
|
| |
| |
|
|
|
|
| |
| |
|
|
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
RareBeast schrieb:
> Hi all.
>
> In setting up some billiard balls in a triangle formation, I discovered that
> I needed to make the z co-ordinate the square root of 3.
>
> I have been using < 0, 0, 1.713> which is fine, but I was wondering if there
> is anyway of doing it like < 0, 0, SQRT(3) > or some such.
>
> Thanks
>
>
>
Be careful! The inputfiles are parsed case sensitive. So just try
sqrt(3) and everything will be alright ;)
So far,
Frank
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
iD8DBQFD7FKpMZ7gqAc0DnoRAs4cAJ4rOFRZWeCLRaU2ZE1+zgMxL9nEbgCggQq1
EaKuiNics2/XQ+a7+sKvj9E=
=/yjE
-----END PGP SIGNATURE-----
Post a reply to this message
|
|
| |
| |
|
|
|
|
| |
|
|