Vector3
Object Hierarchy:
Description:
[ CCode ( copy_function = "g_boxed_copy" , free_function = "g_boxed_free" , type_id = "gimp_vector3_get_type ()" ) ]
[ Compact ]
public class Vector3
A three dimensional vector.
Content:
Creation methods:
Methods:
- public void @set (double x, double y, double z)
Sets the X, Y and Z coordinates of this
to x, y and z.
- public void add (Vector3 vector1, Vector3 vector2)
- public Vector3 add_val (Vector3 vector2)
This function is identical to
vector3_add but the vectors are passed by value rather than by reference.
- public Vector3 cross_product (Vector3 vector2)
Compute the cross product of two vectors.
- public Vector3 cross_product_val (Vector3 vector2)
Identical to [method@Vector3.
- public double inner_product (Vector3 vector2)
Computes the inner (dot) product of two 3D vectors.
- public double inner_product_val (Vector3 vector2)
Identical to [method@Vector3.
- public double length ()
Computes the length of a 3D vector.
- public double length_val ()
Identical to [method@Vector3.
- public void mul (double factor)
Multiplies each component of the this
by factor.
- public Vector3 mul_val (double factor)
Identical to [method@Vector3.
- public void neg ()
Negates the this (i.
- public Vector3 neg_val ()
Identical to [method@Vector3.
- public void normalize ()
Normalizes the this so the length of
the this is 1.0.
- public Vector3 normalize_val ()
Identical to [method@Vector3.
- public void rotate (double alpha, double beta, double gamma)
Rotates the this around the three
axis (Z, Y, and X) by alpha, beta and gamma, respectively.
- public Vector3 rotate_val (double alpha, double beta, double gamma)
Identical to [method@Vector3.
- public void sub (Vector3 vector1, Vector3 vector2)
- public Vector3 sub_val (Vector3 vector2)
This function is identical to
vector3_sub but the vectors are passed by value rather than by reference.
Fields: