Vec3
Object Hierarchy:
Description:
[ CCode ( has_type_id = false ) ]
public struct Vec3
Content:
Methods:
- public void add (Vec3 src2, Vec3 dest)
Adds two vector quantaties The arguments src
and dest
can be the same value.
- public void clear ()
Clears a vector, setting all it's values to zero.
- public void copy (Vec3 dest)
Copies the vector into another vector.
- public double get_data ()
Gets the raw data for the vector.
- public void init (double v0, double v1, double v2)
Initialises a vector.
- public void scalar_multiply (double value, Vec3 dest)
Multiplies a vector with a scalar.
- public double squared_error (Vec3 src2)
Gets the mean squared error for a pair of vectors
- public void subtract (Vec3 src2, Vec3 dest)
Subtracts one vector quantity from another The arguments src
and dest
can be the same value.
- public string to_string ()
Obtains a string representaton of a vector.
Fields: