Struct
GimpVector2
unstable since: 3.0
Description [src]
struct GimpVector2 {
gdouble x;
gdouble y;
}
A two dimensional vector.
Structure members
xThe x axis.
yThe y axis.
Available since: 3.0
Functions
gimp_vector2_add
Computes the sum of two 2D vectors. The resulting GimpVector2 is
stored in result.
unstable since: 3.0
gimp_vector2_sub
Computes the difference of two 2D vectors (vector1 minus vector2).
The resulting GimpVector2 is stored in result.
unstable since: 3.0
Instance methods
gimp_vector2_add_val
This function is identical to gimp_vector2_add() but the vectors
are passed by value rather than by reference.
unstable since: 3.0
gimp_vector2_cross_product
Compute the cross product of two vectors. The result is a
GimpVector2 which is orthogonal to both vector1 and vector2. If
vector1 and vector2 are parallel, the result will be the nul vector.
unstable since: 3.0
gimp_vector2_cross_product_val
Identical to gimp_vector2_cross_product(), but the
vectors are passed by value rather than by reference.
unstable since: 3.0
gimp_vector2_inner_product
Computes the inner (dot) product of two 2D vectors. This product is zero if and only if the two vectors are orthogonal.
unstable since: 3.0
gimp_vector2_inner_product_val
Identical to gimp_vector2_inner_product(), but the
vectors are passed by value rather than by reference.
unstable since: 3.0
gimp_vector2_length_val
Identical to gimp_vector2_length(), but the vector is passed by value
rather than by reference.
unstable since: 3.0
gimp_vector2_mul
Multiplies each component of the vector by factor. Note that this
is equivalent to multiplying the vectors length by factor.
unstable since: 3.0
gimp_vector2_mul_val
Identical to gimp_vector2_mul(), but the vector is passed by value rather
than by reference.
unstable since: 3.0
gimp_vector2_neg_val
Identical to gimp_vector2_neg(), but the vector
is passed by value rather than by reference.
unstable since: 3.0
gimp_vector2_normal_val
Identical to gimp_vector2_normal(), but the vector
is passed by value rather than by reference.
since: 2.8
gimp_vector2_normalize
Normalizes the vector so the length of the vector is 1.0. The nul
vector will not be changed.
unstable since: 3.0
gimp_vector2_normalize_val
Identical to gimp_vector2_normalize(), but the
vector is passed by value rather than by reference.
unstable since: 3.0
gimp_vector2_rotate_val
Identical to gimp_vector2_rotate(), but the vector
is passed by value rather than by reference.
unstable since: 3.0
gimp_vector2_sub_val
This function is identical to gimp_vector2_sub() but the vectors
are passed by value rather than by reference.
unstable since: 3.0