diff options
Diffstat (limited to 'scriptc/rs_quaternion.rsh')
| -rw-r--r-- | scriptc/rs_quaternion.rsh | 65 |
1 files changed, 33 insertions, 32 deletions
diff --git a/scriptc/rs_quaternion.rsh b/scriptc/rs_quaternion.rsh index c6ece96d..a9321c99 100644 --- a/scriptc/rs_quaternion.rsh +++ b/scriptc/rs_quaternion.rsh @@ -14,12 +14,13 @@ * limitations under the License. */ -// Don't edit this file! It is auto-generated by frameworks/rs/api/gen_runtime. +// Don't edit this file! It is auto-generated by frameworks/rs/api/generate.sh. /* * rs_quaternion.rsh: Quaternion routines * */ + #ifndef RENDERSCRIPT_RS_QUATERNION_RSH #define RENDERSCRIPT_RS_QUATERNION_RSH @@ -27,8 +28,8 @@ * Add two quaternions * * Parameters: - * q destination quaternion to add to - * rhs right hand side quaternion to add + * q: destination quaternion to add to + * rhs: right hand side quaternion to add */ static inline void __attribute__((overloadable)) rsQuaternionAdd(rs_quaternion* q, const rs_quaternion* rhs) { @@ -42,7 +43,7 @@ static inline void __attribute__((overloadable)) * Conjugates the quaternion * * Parameters: - * q quaternion to conjugate + * q: quaternion to conjugate */ static inline void __attribute__((overloadable)) rsQuaternionConjugate(rs_quaternion* q) { @@ -55,8 +56,8 @@ static inline void __attribute__((overloadable)) * Dot product of two quaternions * * Parameters: - * q0 first quaternion - * q1 second quaternion + * q0: first quaternion + * q1: second quaternion * * Returns: dot product between q0 and q1 */ @@ -69,8 +70,8 @@ static inline float __attribute__((overloadable)) * Computes rotation matrix from the normalized quaternion * * Parameters: - * m resulting matrix - * q normalized quaternion + * m: resulting matrix + * q: normalized quaternion */ static inline void __attribute__((overloadable)) rsQuaternionGetMatrixUnit(rs_matrix4x4* m, const rs_quaternion* q) { @@ -101,11 +102,11 @@ static inline void __attribute__((overloadable)) * Loads a quaternion that represents a rotation about an arbitrary unit vector * * Parameters: - * q quaternion to set - * rot rot angle to rotate by - * x component of a vector - * y component of a vector - * z component of a vector + * q: quaternion to set + * rot: rot angle to rotate by + * x: component of a vector + * y: component of a vector + * z: component of a vector */ static inline void __attribute__((overloadable)) rsQuaternionLoadRotateUnit(rs_quaternion* q, float rot, float x, float y, float z) { @@ -123,12 +124,12 @@ static inline void __attribute__((overloadable)) * Set the quaternion from components or from another quaternion. * * Parameters: - * q destination quaternion - * w component - * x component - * y component - * z component - * rhs source quaternion + * q: destination quaternion + * w: component + * x: component + * y: component + * z: component + * rhs: source quaternion */ static inline void __attribute__((overloadable)) rsQuaternionSet(rs_quaternion* q, float w, float x, float y, float z) { @@ -151,11 +152,11 @@ static inline void __attribute__((overloadable)) * (doesn't have to be unit) * * Parameters: - * q quaternion to set - * rot angle to rotate by - * x component of a vector - * y component of a vector - * z component of a vector + * q: quaternion to set + * rot: angle to rotate by + * x: component of a vector + * y: component of a vector + * z: component of a vector */ static inline void __attribute__((overloadable)) rsQuaternionLoadRotate(rs_quaternion* q, float rot, float x, float y, float z) { @@ -173,7 +174,7 @@ static inline void __attribute__((overloadable)) * Normalizes the quaternion * * Parameters: - * q quaternion to normalize + * q: quaternion to normalize */ static inline void __attribute__((overloadable)) rsQuaternionNormalize(rs_quaternion* q) { @@ -191,9 +192,9 @@ static inline void __attribute__((overloadable)) * Multiply quaternion by a scalar or another quaternion * * Parameters: - * q destination quaternion - * s scalar - * rhs right hand side quaternion to multiply by + * q: destination quaternion + * s: scalar + * rhs: right hand side quaternion to multiply by */ static inline void __attribute__((overloadable)) rsQuaternionMultiply(rs_quaternion* q, float s) { @@ -219,10 +220,10 @@ static inline void __attribute__((overloadable)) * Performs spherical linear interpolation between two quaternions * * Parameters: - * q result quaternion from interpolation - * q0 first param - * q1 second param - * t how much to interpolate by + * q: result quaternion from interpolation + * q0: first param + * q1: second param + * t: how much to interpolate by */ static inline void __attribute__((overloadable)) rsQuaternionSlerp(rs_quaternion* q, const rs_quaternion* q0, const rs_quaternion* q1, float t) { |
