Function

NumCosmoMathQuaternionnew_from_data

Declaration [src]

NcmQuaternion*
ncm_quaternion_new_from_data (
  gdouble x,
  gdouble y,
  gdouble z,
  gdouble theta
)

Description [src]

Creates a new NcmQuaternion from the given components. See ncm_quaternion_set_from_data() for details.

Parameters

x

Type: gdouble

The x-component.

y

Type: gdouble

The y-component.

z

Type: gdouble

The z-component.

theta

Type: gdouble

The angle.

Return value

Type: NcmQuaternion

A new NcmQuaternion.

The caller of the function takes ownership of the data, and is responsible for freeing it.