This page has been translated automatically.
Programming
Fundamentials
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
API
Bounds-Related Classes
Containers
Controls-Related Classes
Engine-Related Classes
GUI-Related Classes
Node-Related Classes
Pathfinding-Related Classes
Physics-Related Classes
Plugins-Related Classes
Rendering-Related Classes
Utility Classes
Внимание! Эта версия документация УСТАРЕЛА, поскольку относится к более ранней версии SDK! Пожалуйста, переключитесь на самую актуальную документацию для последней версии SDK.
Внимание! Эта версия документации описывает устаревшую версию SDK, которая больше не поддерживается! Пожалуйста, обновитесь до последней версии SDK.

Unigine::half Struct

Half float type.

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

Unigine::halfStructure

Members


UNIGINE_INLINE half ()

Default constructor that produces a zero value.

UNIGINE_INLINE half (const half & h)

Initialization by a half float.

Arguments

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

explicit UNIGINE_INLINE half (int i)

Initialization by an integer.

Arguments

  • int i - The value of integer.

explicit UNIGINE_INLINE half (float f)

Initialization by a float.

Arguments

  • float f - The value of float.

UNIGINE_INLINE half & operator= (half v)

Assignment operator.

Arguments

  • half v - The value of half float.

UNIGINE_INLINE half & operator= (float v)

Assignment operator.

Arguments

  • float v - The value of float.

UNIGINE_INLINE operator float () const

Cast to float type.

Return value

The float value.

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.
Last update: 03.07.2017
Build: ()