![]() |
|
|
#1 |
|
Exponents...
Does UnrealScript have any built-in support for calculating exponents? I know I can write my own function to do it, but I'd rather use built-in functions and operators if there are any. I looked through the Object class and didn't see anything.
__________________
If I'm not wasting my time, I'm wasting my time... |
|
|
|
|
|
|
#2 |
|
what's that?
|
|
|
|
|
|
|
#3 |
|
Join Date: Oct. 3rd, 2001
Location: Frankfurt/Main, Germany
Posts: 3,829
|
From the Object class:
Code:
native(170) static final operator(12) float ** ( float A, float B ); native(191) static final function float Exp ( float A ); |
|
|
|
|
|
#4 |
|
See...
...now I'm all embarrassed. They had to hide it below all that trigonometry stuff so that someone looking at it quickly won't see it. Thanks, though. The mystery comes to an end.
Just to clarify, what does the second one do? Does that return 10^A?
__________________
If I'm not wasting my time, I'm wasting my time... |
|
|
|
|
|
|
#5 | |
|
Re: See...
Quote:
But do note that UT can only do natural log. But if you are clever, you can use that to do any base. |
||
|
|
|
![]() |
| Thread Tools | |
| Display Modes | |
|
|