Main Page | Modules | Class List | File List | Class Members | File Members

Multiply/Divide a Fixed Size Vector by a Scalar
[Fixed Size Vectors]


Functions

Gan_Vector2 gan_vec2_scale_s (const Gan_Vector2 *x, const double a)
 Scale fixed size vector.
Gan_Vector2 gan_vec2_divide_s (const Gan_Vector2 *x, const double a)
 Divide fixed size vector by scalar.
Gan_Vector2 gan_vec2_negate_s (const Gan_Vector2 *x)
 Negate fixed size vector.
Gan_Vector2gan_vec2_unit_q (Gan_Vector2 *x, Gan_Vector2 *y)
 Scale matrix to unit norm.
Gan_Vector2 gan_vec2_unit_s (const Gan_Vector2 *x)
 Scale matrix to unit norm.
Gan_Vector2gan_vec2_scale_q (Gan_Vector2 *p, double a, Gan_Vector2 *q)
 Macro: Scale fixed size vector.
Gan_Vector2gan_vec2_scale_i (Gan_Vector2 *p, double a)
 Macro: Scale fixed size vector.
Gan_Vector2gan_vec2_divide_q (Gan_Vector2 *p, double a, Gan_Vector2 *q)
 Macro: Divide fixed size vector by scalar.
Gan_Vector2gan_vec2_divide_i (Gan_Vector2 *p, double a)
 Macro: Divide fixed size vector by scalar.
Gan_Vector2gan_vec2_negate_q (Gan_Vector2 *p, Gan_Vector2 *q)
 Macro: Negate fixed size vector.
Gan_Vector2gan_vec2_negate_i (Gan_Vector2 *p)
 Macro: Negate fixed size vector.
Gan_Vector2gan_vec2_unit_i (Gan_Vector2 *p)
 Macro: Scale vector to unit norm.
Gan_Vector2_f gan_vec2f_scale_s (const Gan_Vector2_f *x, const float a)
 Scale fixed size vector.
Gan_Vector2_f gan_vec2f_divide_s (const Gan_Vector2_f *x, const float a)
 Divide fixed size vector by scalar.
Gan_Vector2_f gan_vec2f_negate_s (const Gan_Vector2_f *x)
 Negate fixed size vector.
Gan_Vector2_fgan_vec2f_unit_q (Gan_Vector2_f *x, Gan_Vector2_f *y)
 Scale matrix to unit norm.
Gan_Vector2_f gan_vec2f_unit_s (const Gan_Vector2_f *x)
 Scale matrix to unit norm.
Gan_Vector2_fgan_vec2f_scale_q (Gan_Vector2_f *p, float a, Gan_Vector2_f *q)
 Macro: Scale fixed size vector.
Gan_Vector2_fgan_vec2f_scale_i (Gan_Vector2_f *p, float a)
 Macro: Scale fixed size vector.
Gan_Vector2_fgan_vec2f_divide_q (Gan_Vector2_f *p, float a, Gan_Vector2_f *q)
 Macro: Divide fixed size vector by scalar.
Gan_Vector2_fgan_vec2f_divide_i (Gan_Vector2_f *p, float a)
 Macro: Divide fixed size vector by scalar.
Gan_Vector2_fgan_vec2f_negate_q (Gan_Vector2_f *p, Gan_Vector2_f *q)
 Macro: Negate fixed size vector.
Gan_Vector2_fgan_vec2f_negate_i (Gan_Vector2_f *p)
 Macro: Negate fixed size vector.
Gan_Vector2_fgan_vec2f_unit_i (Gan_Vector2_f *p)
 Macro: Scale vector to unit norm.
Gan_Vector3 gan_vec3_scale_s (const Gan_Vector3 *x, const double a)
 Scale fixed size vector.
Gan_Vector3 gan_vec3_divide_s (const Gan_Vector3 *x, const double a)
 Divide fixed size vector by scalar.
Gan_Vector3 gan_vec3_negate_s (const Gan_Vector3 *x)
 Negate fixed size vector.
Gan_Vector3gan_vec3_unit_q (Gan_Vector3 *x, Gan_Vector3 *y)
 Scale matrix to unit norm.
Gan_Vector3 gan_vec3_unit_s (const Gan_Vector3 *x)
 Scale matrix to unit norm.
Gan_Vector3gan_vec3_scale_q (Gan_Vector3 *p, double a, Gan_Vector3 *q)
 Macro: Scale fixed size vector.
Gan_Vector3gan_vec3_scale_i (Gan_Vector3 *p, double a)
 Macro: Scale fixed size vector.
Gan_Vector3gan_vec3_divide_q (Gan_Vector3 *p, double a, Gan_Vector3 *q)
 Macro: Divide fixed size vector by scalar.
Gan_Vector3gan_vec3_divide_i (Gan_Vector3 *p, double a)
 Macro: Divide fixed size vector by scalar.
Gan_Vector3gan_vec3_negate_q (Gan_Vector3 *p, Gan_Vector3 *q)
 Macro: Negate fixed size vector.
Gan_Vector3gan_vec3_negate_i (Gan_Vector3 *p)
 Macro: Negate fixed size vector.
Gan_Vector3gan_vec3_unit_i (Gan_Vector3 *p)
 Macro: Scale vector to unit norm.
Gan_Vector3_f gan_vec3f_scale_s (const Gan_Vector3_f *x, const float a)
 Scale fixed size vector.
Gan_Vector3_f gan_vec3f_divide_s (const Gan_Vector3_f *x, const float a)
 Divide fixed size vector by scalar.
Gan_Vector3_f gan_vec3f_negate_s (const Gan_Vector3_f *x)
 Negate fixed size vector.
Gan_Vector3_fgan_vec3f_unit_q (Gan_Vector3_f *x, Gan_Vector3_f *y)
 Scale matrix to unit norm.
Gan_Vector3_f gan_vec3f_unit_s (const Gan_Vector3_f *x)
 Scale matrix to unit norm.
Gan_Vector3_fgan_vec3f_scale_q (Gan_Vector3_f *p, float a, Gan_Vector3_f *q)
 Macro: Scale fixed size vector.
Gan_Vector3_fgan_vec3f_scale_i (Gan_Vector3_f *p, float a)
 Macro: Scale fixed size vector.
Gan_Vector3_fgan_vec3f_divide_q (Gan_Vector3_f *p, float a, Gan_Vector3_f *q)
 Macro: Divide fixed size vector by scalar.
Gan_Vector3_fgan_vec3f_divide_i (Gan_Vector3_f *p, float a)
 Macro: Divide fixed size vector by scalar.
Gan_Vector3_fgan_vec3f_negate_q (Gan_Vector3_f *p, Gan_Vector3_f *q)
 Macro: Negate fixed size vector.
Gan_Vector3_fgan_vec3f_negate_i (Gan_Vector3_f *p)
 Macro: Negate fixed size vector.
Gan_Vector3_fgan_vec3f_unit_i (Gan_Vector3_f *p)
 Macro: Scale vector to unit norm.
Gan_Vector4 gan_vec4_scale_s (const Gan_Vector4 *x, const double a)
 Scale fixed size vector.
Gan_Vector4 gan_vec4_divide_s (const Gan_Vector4 *x, const double a)
 Divide fixed size vector by scalar.
Gan_Vector4 gan_vec4_negate_s (const Gan_Vector4 *x)
 Negate fixed size vector.
Gan_Vector4gan_vec4_unit_q (Gan_Vector4 *x, Gan_Vector4 *y)
 Scale matrix to unit norm.
Gan_Vector4 gan_vec4_unit_s (const Gan_Vector4 *x)
 Scale matrix to unit norm.
Gan_Vector4gan_vec4_scale_q (Gan_Vector4 *p, double a, Gan_Vector4 *q)
 Macro: Scale fixed size vector.
Gan_Vector4gan_vec4_scale_i (Gan_Vector4 *p, double a)
 Macro: Scale fixed size vector.
Gan_Vector4gan_vec4_divide_q (Gan_Vector4 *p, double a, Gan_Vector4 *q)
 Macro: Divide fixed size vector by scalar.
Gan_Vector4gan_vec4_divide_i (Gan_Vector4 *p, double a)
 Macro: Divide fixed size vector by scalar.
Gan_Vector4gan_vec4_negate_q (Gan_Vector4 *p, Gan_Vector4 *q)
 Macro: Negate fixed size vector.
Gan_Vector4gan_vec4_negate_i (Gan_Vector4 *p)
 Macro: Negate fixed size vector.
Gan_Vector4gan_vec4_unit_i (Gan_Vector4 *p)
 Macro: Scale vector to unit norm.
Gan_Vector4_f gan_vec4f_scale_s (const Gan_Vector4_f *x, const float a)
 Scale fixed size vector.
Gan_Vector4_f gan_vec4f_divide_s (const Gan_Vector4_f *x, const float a)
 Divide fixed size vector by scalar.
Gan_Vector4_f gan_vec4f_negate_s (const Gan_Vector4_f *x)
 Negate fixed size vector.
Gan_Vector4_fgan_vec4f_unit_q (Gan_Vector4_f *x, Gan_Vector4_f *y)
 Scale matrix to unit norm.
Gan_Vector4_f gan_vec4f_unit_s (const Gan_Vector4_f *x)
 Scale matrix to unit norm.
Gan_Vector4_fgan_vec4f_scale_q (Gan_Vector4_f *p, float a, Gan_Vector4_f *q)
 Macro: Scale fixed size vector.
Gan_Vector4_fgan_vec4f_scale_i (Gan_Vector4_f *p, float a)
 Macro: Scale fixed size vector.
Gan_Vector4_fgan_vec4f_divide_q (Gan_Vector4_f *p, float a, Gan_Vector4_f *q)
 Macro: Divide fixed size vector by scalar.
Gan_Vector4_fgan_vec4f_divide_i (Gan_Vector4_f *p, float a)
 Macro: Divide fixed size vector by scalar.
Gan_Vector4_fgan_vec4f_negate_q (Gan_Vector4_f *p, Gan_Vector4_f *q)
 Macro: Negate fixed size vector.
Gan_Vector4_fgan_vec4f_negate_i (Gan_Vector4_f *p)
 Macro: Negate fixed size vector.
Gan_Vector4_fgan_vec4f_unit_i (Gan_Vector4_f *p)
 Macro: Scale vector to unit norm.

Function Documentation

Gan_Vector2* gan_vec2_divide_i Gan_Vector2 p,
double  a
 

Macro: Divide fixed size vector by scalar.

Divide fixed size vector p by scalar a in-place, returning p.

Gan_Vector2* gan_vec2_divide_q Gan_Vector2 p,
double  a,
Gan_Vector2 q
 

Macro: Divide fixed size vector by scalar.

Divide fixed size vector p by scalar a, writing result into fixed size vector q, and returning q.

Gan_Vector2 gan_vec2_divide_s const Gan_Vector2 x,
const double  a
 

Divide fixed size vector by scalar.

Return a copy of fixed size vector p divided by scalar a.

Gan_Vector2* gan_vec2_negate_i Gan_Vector2 p  ) 
 

Macro: Negate fixed size vector.

Negate fixed size vector p in-place: $ p \leftarrow -p $.

Returns:
Pointer to negated vector p.

Gan_Vector2* gan_vec2_negate_q Gan_Vector2 p,
Gan_Vector2 q
 

Macro: Negate fixed size vector.

Negate fixed size vector p into fixed size vector $ q = -p $.

Returns:
Pointer to result vector q.

Gan_Vector2 gan_vec2_negate_s const Gan_Vector2 x  ) 
 

Negate fixed size vector.

Return a negated copy of fixed size vector p.

Gan_Vector2* gan_vec2_scale_i Gan_Vector2 p,
double  a
 

Macro: Scale fixed size vector.

Multiply fixed size vector p by scalar a in-place, returning p.

Gan_Vector2* gan_vec2_scale_q Gan_Vector2 p,
double  a,
Gan_Vector2 q
 

Macro: Scale fixed size vector.

Multiply fixed size vector p by scalar a, writing result into fixed size vector q, and returning q.

Gan_Vector2 gan_vec2_scale_s const Gan_Vector2 x,
const double  a
 

Scale fixed size vector.

Return a copy of fixed size vector p multiplied by scalar a.

Gan_Vector2* gan_vec2_unit_i Gan_Vector2 p  ) 
 

Macro: Scale vector to unit norm.

Scale fixed-size vector p to unit length in-place, returning p.

Gan_Vector2* gan_vec2_unit_q Gan_Vector2 x,
Gan_Vector2 y
 

Scale matrix to unit norm.

Scale fixed size vector x to unit fixed size vector, writing result into fixed size vector y.

Returns:
Pointer to the result vector y, or NULL on failure.

Gan_Vector2 gan_vec2_unit_s const Gan_Vector2 x  ) 
 

Scale matrix to unit norm.

Return a copy of fixed size vector x multiplied by scalar so that the result is a unit fixed size vector.

Returns:
The unit vector x.

Gan_Vector2_f* gan_vec2f_divide_i Gan_Vector2_f p,
float  a
 

Macro: Divide fixed size vector by scalar.

Divide fixed size vector p by scalar a in-place, returning p.

Gan_Vector2_f* gan_vec2f_divide_q Gan_Vector2_f p,
float  a,
Gan_Vector2_f q
 

Macro: Divide fixed size vector by scalar.

Divide fixed size vector p by scalar a, writing result into fixed size vector q, and returning q.

Gan_Vector2_f gan_vec2f_divide_s const Gan_Vector2_f x,
const float  a
 

Divide fixed size vector by scalar.

Return a copy of fixed size vector p divided by scalar a.

Gan_Vector2_f* gan_vec2f_negate_i Gan_Vector2_f p  ) 
 

Macro: Negate fixed size vector.

Negate fixed size vector p in-place: $ p \leftarrow -p $.

Returns:
Pointer to negated vector p.

Gan_Vector2_f* gan_vec2f_negate_q Gan_Vector2_f p,
Gan_Vector2_f q
 

Macro: Negate fixed size vector.

Negate fixed size vector p into fixed size vector $ q = -p $.

Returns:
Pointer to result vector q.

Gan_Vector2_f gan_vec2f_negate_s const Gan_Vector2_f x  ) 
 

Negate fixed size vector.

Return a negated copy of fixed size vector p.

Gan_Vector2_f* gan_vec2f_scale_i Gan_Vector2_f p,
float  a
 

Macro: Scale fixed size vector.

Multiply fixed size vector p by scalar a in-place, returning p.

Gan_Vector2_f* gan_vec2f_scale_q Gan_Vector2_f p,
float  a,
Gan_Vector2_f q
 

Macro: Scale fixed size vector.

Multiply fixed size vector p by scalar a, writing result into fixed size vector q, and returning q.

Gan_Vector2_f gan_vec2f_scale_s const Gan_Vector2_f x,
const float  a
 

Scale fixed size vector.

Return a copy of fixed size vector p multiplied by scalar a.

Gan_Vector2_f* gan_vec2f_unit_i Gan_Vector2_f p  ) 
 

Macro: Scale vector to unit norm.

Scale fixed-size vector p to unit length in-place, returning p.

Gan_Vector2_f* gan_vec2f_unit_q Gan_Vector2_f x,
Gan_Vector2_f y
 

Scale matrix to unit norm.

Scale fixed size vector x to unit fixed size vector, writing result into fixed size vector y.

Returns:
Pointer to the result vector y, or NULL on failure.

Gan_Vector2_f gan_vec2f_unit_s const Gan_Vector2_f x  ) 
 

Scale matrix to unit norm.

Return a copy of fixed size vector x multiplied by scalar so that the result is a unit fixed size vector.

Returns:
The unit vector x.

Gan_Vector3* gan_vec3_divide_i Gan_Vector3 p,
double  a
 

Macro: Divide fixed size vector by scalar.

Divide fixed size vector p by scalar a in-place, returning p.

Gan_Vector3* gan_vec3_divide_q Gan_Vector3 p,
double  a,
Gan_Vector3 q
 

Macro: Divide fixed size vector by scalar.

Divide fixed size vector p by scalar a, writing result into fixed size vector q, and returning q.

Gan_Vector3 gan_vec3_divide_s const Gan_Vector3 x,
const double  a
 

Divide fixed size vector by scalar.

Return a copy of fixed size vector p divided by scalar a.

Gan_Vector3* gan_vec3_negate_i Gan_Vector3 p  ) 
 

Macro: Negate fixed size vector.

Negate fixed size vector p in-place: $ p \leftarrow -p $.

Returns:
Pointer to negated vector p.

Gan_Vector3* gan_vec3_negate_q Gan_Vector3 p,
Gan_Vector3 q
 

Macro: Negate fixed size vector.

Negate fixed size vector p into fixed size vector $ q = -p $.

Returns:
Pointer to result vector q.

Gan_Vector3 gan_vec3_negate_s const Gan_Vector3 x  ) 
 

Negate fixed size vector.

Return a negated copy of fixed size vector p.

Gan_Vector3* gan_vec3_scale_i Gan_Vector3 p,
double  a
 

Macro: Scale fixed size vector.

Multiply fixed size vector p by scalar a in-place, returning p.

Gan_Vector3* gan_vec3_scale_q Gan_Vector3 p,
double  a,
Gan_Vector3 q
 

Macro: Scale fixed size vector.

Multiply fixed size vector p by scalar a, writing result into fixed size vector q, and returning q.

Gan_Vector3 gan_vec3_scale_s const Gan_Vector3 x,
const double  a
 

Scale fixed size vector.

Return a copy of fixed size vector p multiplied by scalar a.

Gan_Vector3* gan_vec3_unit_i Gan_Vector3 p  ) 
 

Macro: Scale vector to unit norm.

Scale fixed-size vector p to unit length in-place, returning p.

Gan_Vector3* gan_vec3_unit_q Gan_Vector3 x,
Gan_Vector3 y
 

Scale matrix to unit norm.

Scale fixed size vector x to unit fixed size vector, writing result into fixed size vector y.

Returns:
Pointer to the result vector y, or NULL on failure.

Gan_Vector3 gan_vec3_unit_s const Gan_Vector3 x  ) 
 

Scale matrix to unit norm.

Return a copy of fixed size vector x multiplied by scalar so that the result is a unit fixed size vector.

Returns:
The unit vector x.

Gan_Vector3_f* gan_vec3f_divide_i Gan_Vector3_f p,
float  a
 

Macro: Divide fixed size vector by scalar.

Divide fixed size vector p by scalar a in-place, returning p.

Gan_Vector3_f* gan_vec3f_divide_q Gan_Vector3_f p,
float  a,
Gan_Vector3_f q
 

Macro: Divide fixed size vector by scalar.

Divide fixed size vector p by scalar a, writing result into fixed size vector q, and returning q.

Gan_Vector3_f gan_vec3f_divide_s const Gan_Vector3_f x,
const float  a
 

Divide fixed size vector by scalar.

Return a copy of fixed size vector p divided by scalar a.

Gan_Vector3_f* gan_vec3f_negate_i Gan_Vector3_f p  ) 
 

Macro: Negate fixed size vector.

Negate fixed size vector p in-place: $ p \leftarrow -p $.

Returns:
Pointer to negated vector p.

Gan_Vector3_f* gan_vec3f_negate_q Gan_Vector3_f p,
Gan_Vector3_f q
 

Macro: Negate fixed size vector.

Negate fixed size vector p into fixed size vector $ q = -p $.

Returns:
Pointer to result vector q.

Gan_Vector3_f gan_vec3f_negate_s const Gan_Vector3_f x  ) 
 

Negate fixed size vector.

Return a negated copy of fixed size vector p.

Gan_Vector3_f* gan_vec3f_scale_i Gan_Vector3_f p,
float  a
 

Macro: Scale fixed size vector.

Multiply fixed size vector p by scalar a in-place, returning p.

Gan_Vector3_f* gan_vec3f_scale_q Gan_Vector3_f p,
float  a,
Gan_Vector3_f q
 

Macro: Scale fixed size vector.

Multiply fixed size vector p by scalar a, writing result into fixed size vector q, and returning q.

Gan_Vector3_f gan_vec3f_scale_s const Gan_Vector3_f x,
const float  a
 

Scale fixed size vector.

Return a copy of fixed size vector p multiplied by scalar a.

Gan_Vector3_f* gan_vec3f_unit_i Gan_Vector3_f p  ) 
 

Macro: Scale vector to unit norm.

Scale fixed-size vector p to unit length in-place, returning p.

Gan_Vector3_f* gan_vec3f_unit_q Gan_Vector3_f x,
Gan_Vector3_f y
 

Scale matrix to unit norm.

Scale fixed size vector x to unit fixed size vector, writing result into fixed size vector y.

Returns:
Pointer to the result vector y, or NULL on failure.

Gan_Vector3_f gan_vec3f_unit_s const Gan_Vector3_f x  ) 
 

Scale matrix to unit norm.

Return a copy of fixed size vector x multiplied by scalar so that the result is a unit fixed size vector.

Returns:
The unit vector x.

Gan_Vector4* gan_vec4_divide_i Gan_Vector4 p,
double  a
 

Macro: Divide fixed size vector by scalar.

Divide fixed size vector p by scalar a in-place, returning p.

Gan_Vector4* gan_vec4_divide_q Gan_Vector4 p,
double  a,
Gan_Vector4 q
 

Macro: Divide fixed size vector by scalar.

Divide fixed size vector p by scalar a, writing result into fixed size vector q, and returning q.

Gan_Vector4 gan_vec4_divide_s const Gan_Vector4 x,
const double  a
 

Divide fixed size vector by scalar.

Return a copy of fixed size vector p divided by scalar a.

Gan_Vector4* gan_vec4_negate_i Gan_Vector4 p  ) 
 

Macro: Negate fixed size vector.

Negate fixed size vector p in-place: $ p \leftarrow -p $.

Returns:
Pointer to negated vector p.

Gan_Vector4* gan_vec4_negate_q Gan_Vector4 p,
Gan_Vector4 q
 

Macro: Negate fixed size vector.

Negate fixed size vector p into fixed size vector $ q = -p $.

Returns:
Pointer to result vector q.

Gan_Vector4 gan_vec4_negate_s const Gan_Vector4 x  ) 
 

Negate fixed size vector.

Return a negated copy of fixed size vector p.

Gan_Vector4* gan_vec4_scale_i Gan_Vector4 p,
double  a
 

Macro: Scale fixed size vector.

Multiply fixed size vector p by scalar a in-place, returning p.

Gan_Vector4* gan_vec4_scale_q Gan_Vector4 p,
double  a,
Gan_Vector4 q
 

Macro: Scale fixed size vector.

Multiply fixed size vector p by scalar a, writing result into fixed size vector q, and returning q.

Gan_Vector4 gan_vec4_scale_s const Gan_Vector4 x,
const double  a
 

Scale fixed size vector.

Return a copy of fixed size vector p multiplied by scalar a.

Gan_Vector4* gan_vec4_unit_i Gan_Vector4 p  ) 
 

Macro: Scale vector to unit norm.

Scale fixed-size vector p to unit length in-place, returning p.

Gan_Vector4* gan_vec4_unit_q Gan_Vector4 x,
Gan_Vector4 y
 

Scale matrix to unit norm.

Scale fixed size vector x to unit fixed size vector, writing result into fixed size vector y.

Returns:
Pointer to the result vector y, or NULL on failure.

Gan_Vector4 gan_vec4_unit_s const Gan_Vector4 x  ) 
 

Scale matrix to unit norm.

Return a copy of fixed size vector x multiplied by scalar so that the result is a unit fixed size vector.

Returns:
The unit vector x.

Gan_Vector4_f* gan_vec4f_divide_i Gan_Vector4_f p,
float  a
 

Macro: Divide fixed size vector by scalar.

Divide fixed size vector p by scalar a in-place, returning p.

Gan_Vector4_f* gan_vec4f_divide_q Gan_Vector4_f p,
float  a,
Gan_Vector4_f q
 

Macro: Divide fixed size vector by scalar.

Divide fixed size vector p by scalar a, writing result into fixed size vector q, and returning q.

Gan_Vector4_f gan_vec4f_divide_s const Gan_Vector4_f x,
const float  a
 

Divide fixed size vector by scalar.

Return a copy of fixed size vector p divided by scalar a.

Gan_Vector4_f* gan_vec4f_negate_i Gan_Vector4_f p  ) 
 

Macro: Negate fixed size vector.

Negate fixed size vector p in-place: $ p \leftarrow -p $.

Returns:
Pointer to negated vector p.

Gan_Vector4_f* gan_vec4f_negate_q Gan_Vector4_f p,
Gan_Vector4_f q
 

Macro: Negate fixed size vector.

Negate fixed size vector p into fixed size vector $ q = -p $.

Returns:
Pointer to result vector q.

Gan_Vector4_f gan_vec4f_negate_s const Gan_Vector4_f x  ) 
 

Negate fixed size vector.

Return a negated copy of fixed size vector p.

Gan_Vector4_f* gan_vec4f_scale_i Gan_Vector4_f p,
float  a
 

Macro: Scale fixed size vector.

Multiply fixed size vector p by scalar a in-place, returning p.

Gan_Vector4_f* gan_vec4f_scale_q Gan_Vector4_f p,
float  a,
Gan_Vector4_f q
 

Macro: Scale fixed size vector.

Multiply fixed size vector p by scalar a, writing result into fixed size vector q, and returning q.

Gan_Vector4_f gan_vec4f_scale_s const Gan_Vector4_f x,
const float  a
 

Scale fixed size vector.

Return a copy of fixed size vector p multiplied by scalar a.

Gan_Vector4_f* gan_vec4f_unit_i Gan_Vector4_f p  ) 
 

Macro: Scale vector to unit norm.

Scale fixed-size vector p to unit length in-place, returning p.

Gan_Vector4_f* gan_vec4f_unit_q Gan_Vector4_f x,
Gan_Vector4_f y
 

Scale matrix to unit norm.

Scale fixed size vector x to unit fixed size vector, writing result into fixed size vector y.

Returns:
Pointer to the result vector y, or NULL on failure.

Gan_Vector4_f gan_vec4f_unit_s const Gan_Vector4_f x  ) 
 

Scale matrix to unit norm.

Return a copy of fixed size vector x multiplied by scalar so that the result is a unit fixed size vector.

Returns:
The unit vector x.


Generated on Fri Mar 17 12:44:54 2006 by  doxygen 1.3.9.1