This page has been translated automatically.
编程
Fundamentals
Setting Up Development Environment
UnigineScript
High-Level Systems
C++
C#
UUSL (Unified UNIGINE Shader Language)
File Formats
Rebuilding the Engine and Tools
GUI
Double Precision Coordinates
应用程序接口
Containers
Common Functionality
Controls-Related Classes
Engine-Related Classes
Filesystem Functionality
GUI-Related Classes
Node-Related Classes
Networking Functionality
Pathfinding-Related Classes
Physics-Related Classes
Plugins-Related Classes
Rendering-Related Classes
注意! 这个版本的文档是过时的,因为它描述了一个较老的SDK版本!请切换到最新SDK版本的文档。
注意! 这个版本的文档描述了一个不再受支持的旧SDK版本!请升级到最新的SDK版本。

Unigine::Unigine::half Struct

Header:#include <UnigineMathLib.h>

Half float type.

To use this structure, include the UnigineMathLib.h file.

half Class

Members


half()

Default constructor that produces a zero value.

half(const half & h)

Initialization by a half float.

Arguments

  • const half & h - The value of half float.

explicit half(int i)

Initialization by an integer.

Arguments

  • int i - The value of integer.

explicit half(float f)

Initialization by a float.

Arguments

  • float f - The value of float.

void setFloat(float f)

Sets the float value.

Arguments

  • float f - The value of float.

float getFloat() const

Gets the float value.

Return value

The value of float.

operator float() const

Cast to float type.

Return value

The float value.

unsigned short operator unsigned short()

half & operator=(half v)

Assignment operator.

Arguments

  • half v - The value of half float.

half & operator=(float f)

Assignment operator.

Arguments

  • float f - The value of float.
Last update: 2017-07-03
Build: ()