HalfFloat
@Target([AnnotationTarget.VALUE_PARAMETER, AnnotationTarget.FUNCTION, AnnotationTarget.PROPERTY_GETTER, AnnotationTarget.PROPERTY_SETTER, AnnotationTarget.LOCAL_VARIABLE, AnnotationTarget.FIELD]) class HalfFloat
androidx.annotation.HalfFloat |
Denotes that the annotated element represents a half-precision floating point value. Such values are stored in short data types and can be manipulated with the android.util.Half
class. If applied to an array of short, every element in the array represents a half-precision float.
Example:
<code>public abstract void setPosition(@HalfFloat short x, @HalfFloat short y, @HalfFloat short z); </code>
Summary
Public constructors | |
---|---|
<init>() Denotes that the annotated element represents a half-precision floating point value. |
Public constructors
<init>
HalfFloat()
Denotes that the annotated element represents a half-precision floating point value. Such values are stored in short data types and can be manipulated with the android.util.Half
class. If applied to an array of short, every element in the array represents a half-precision float.
Example:
<code>public abstract void setPosition(@HalfFloat short x, @HalfFloat short y, @HalfFloat short z); </code>