This page has been translated automatically.
视频教程
界面
要领
高级
实用建议
基础
专业(SIM)
UnigineEditor
界面概述
资源工作流程
Version Control
设置和首选项
项目开发
调整节点参数
Setting Up Materials
设置属性
照明
Sandworm
使用编辑器工具执行特定任务
如何擴展編輯器功能
嵌入式节点类型
Nodes
Objects
Effects
Decals
光源
Geodetics
World Nodes
Sound Objects
Pathfinding Objects
Players
编程
基本原理
搭建开发环境
使用范例
C++
C#
UnigineScript
统一的Unigine着色器语言 UUSL (Unified UNIGINE Shader Language)
Plugins
File Formats
材质和着色器
Rebuilding the Engine Tools
GUI
双精度坐标
应用程序接口
Animations-Related Classes
Containers
Common Functionality
Controls-Related Classes
Engine-Related Classes
Filesystem Functionality
GUI-Related Classes
Node-Related Classes
Objects-Related Classes
Networking Functionality
Pathfinding-Related Classes
Physics-Related Classes
Plugins-Related Classes
IG Plugin
CIGIConnector Plugin
Rendering-Related Classes
VR-Related Classes
创建内容
内容优化
材质
Material Nodes Library
Miscellaneous
Input
Math
Matrix
Textures
Art Samples
Tutorials

Math Exponential Functions

Header: #include <UnigineMathLib.h>

This class represents exponential functions.

Notice
Math exponential functions are the members of the Unigine::Math namespace.

Math Class

Members


float exp ( float v ) #

Returns e raised to the specified power (ev ).

Arguments

  • float v - Power.

Return value

e raised to the specified power (ev ).

double exp ( double v ) #

Returns e raised to the specified power (ev ).

Arguments

  • double v - Power.

Return value

e raised to the specified power (ev ).

float expFast ( float v ) #

Returns e raised to the specified power (ev ) - the approximated (quicker calculated) value.

Arguments

  • float v - Power.

Return value

e raised to the specified power (ev ).

float exp2 ( float v ) #

Returns 2 raised to the specified power (2v ).

Arguments

  • float v - Power.

Return value

2 raised to the specified power (2v ).

double exp2 ( double v ) #

Returns 2 raised to the specified power (2v ).

Arguments

  • double v - Power.

Return value

2 raised to the specified power (2v ).

float exp2Fast ( float v ) #

Returns 2 raised to the specified power (2v ) - the approximated (quicker calculated) value.

Arguments

  • float v - Power.

Return value

2 raised to the specified power (2v ).

float log ( float v ) #

Returns the natural logarithm of the argument.

Arguments

  • float v - Argument.

Return value

Natural logarithm of the argument.

double log ( double v ) #

Returns the natural logarithm of the argument.

Arguments

  • double v - Argument.

Return value

Natural logarithm of the argument.

float logFast ( float v ) #

Returns the approximated (quicker calculated) natural logarithm of the argument.

Arguments

  • float v - Argument.

Return value

Approximated natural logarithm of the argument.

int log2 ( int v ) #

Returns the base-2 logarithm of the argument.

Arguments

  • int v - Argument.

Return value

Base-2 logarithm of the argument.

float log2 ( float v ) #

Returns the base-2 logarithm of the argument.

Arguments

  • float v - Argument.

Return value

Base-2 logarithm of the argument.

double log2 ( double v ) #

Returns the base-2 logarithm of the argument.

Arguments

  • double v - Argument.

Return value

Base-2 logarithm of the argument.

float log2Fast ( float v ) #

Returns the approximated (quicker calculated) base-2 logarithm of the argument.

Arguments

  • float v - Argument.

Return value

Approximated base-2 logarithm of the argument.

float log10 ( float v ) #

Returns the base-10 logarithm of the argument.

Arguments

  • float v - Argument.

Return value

Base-10 logarithm of the argument.

double log10 ( double v ) #

Returns the base-10 logarithm of the argument.

Arguments

  • double v - Argument.

Return value

Base-10 logarithm of the argument.

float pow ( float x, float y ) #

Returns the argument raised to the specified power (xy ).

Arguments

  • float x - Argument.
  • float y - Power.

Return value

Argument raised to the specified power (xy ).

double pow ( double x, double y ) #

Returns the argument raised to the specified power (xy ).

Arguments

  • double x - Argument.
  • double y - Power.

Return value

Argument raised to the specified power (xy ).

float powFast ( float a, float b ) #

Returns the argument raised to the specified power (ab). Doesn't perform the check that the first argument is a negative value.

Arguments

  • float a - Argument.
  • float b - Power.

Return value

Argument raised to the specified power (ab).

float pow2 ( float x ) #

Returns the argument raised to the power of 2 (squared).

Arguments

  • float x - Argument.

Return value

Argument raised to the power of 2 (squared).

double pow2 ( double x ) #

Returns the argument raised to the power of 2 (squared).

Arguments

  • double x - Argument.

Return value

Argument raised to the power of 2 (squared).

int pow2 ( int x ) #

Returns the argument raised to the power of 2 (squared).

Arguments

  • int x - Argument.

Return value

Argument raised to the power of 2 (squared).

unsigned long long nextPow2 ( unsigned long long x ) #

Returns the next power of 2 greater than or equal to a given argument.

Arguments

  • unsigned long long x - Argument.

Return value

Power of 2 greater than or equal to a given argument.

double dsqrt ( double v ) #

Returns the square root of the argument.

Arguments

  • double v - Argument.

Return value

Square root of the argument.

float fsqrt ( float v ) #

Returns the square root of the argument.

Arguments

  • float v - Argument.

Return value

Square root of the argument.

float rsqrt ( float v ) #

Returns the inverted square root of the argument.

Arguments

  • float v - Argument.

Return value

Inverted square root of the argument.

double rsqrt ( double v ) #

Returns the inverted square root of the argument.

Arguments

  • double v - Argument.

Return value

Inverted square root of the argument.

Scalar ssqrt ( Scalar v ) #

Returns the square root of the argument.

Arguments

  • Scalar v - Argument.

Return value

Square root of the argument.

float sqrtFast ( float v ) #

Returns an approximation of the square root.

Arguments

  • float v - Argument.

Return value

Approximated square root of the argument.

float rsqrtFast ( float v ) #

Returns an approximation of the inverted square root.

Arguments

  • float v - Argument.

Return value

Approximation of the inverted square root of the argument.
Last update: 2024-12-13
Build: ()