omni::math::dimensional::dimensional
NAME

omni::math::dimensional::dimensional

A member ctor of omni::math::dimensional

#include <omni/types/math_t.hpp>
omni::math::dimensional::dimensional(T val1, ... NaN)

SYNOPSIS

Creates a dimensional with the values passed in.

top

DESCRIPTION

Create a dimensional type with the default values specified.

top

PARAMETERS

val1... - The value(s) to assign each of the dimensional's underlying buffer up to val+SZ.

top


CONSIDERATIONS

Be aware, due to the variadic argument list being used, if the backing type is that of a float or double, the values passed in must either be named types or explicitly defined; for example, you must have variables defined as a double and passing in those variables or you must explicitly pass in 10.0 (for example) for each value. Failure to do this could cause the underlying floating types to be mis-read by the va_arg list due to certain casting behavior by some compilers/environments.

top