The geometry classes use the vector classes. In this document, `vector', `point' and `centre' imply objects of type `Vector'.
type_name parameters
type_name | parameters |
---|---|
plane | normal_vector (n) family_parameter (f=n.r : r = point_in_plane) |
cylinder | point_on_axis axis_vector radius |
cone | point_on_axis axis_vector half_angle (radians) |
general_cone | point_on_axis axis_vector half_angle (radians) radius_at_point_on_axis |
sphere | centre radius |
ellipsoid | centre radius_1 radius_2 ... radius_N |
general_ellipsoid | centre axis_vector_1 axis_vector_2 ... axis_vector_N radius_1 radius_2 ... radius_N |
Vector average( const Array& v, // array of position vectors const Array & w // array of weights )
Plane best_fitting_plane( const ArrayReturns a plane whose normal has no components if it fails.& r, // Array of position Vectors const Vector& f, // Array of function values const Vector& w // Array of weights )
Sphere best_fitting_sphere( const ArrayReturns a sphere whose centre has no components if it fails.& r, // Array of position Vectors const Vector& w // Array of weights )
Ellipsoid best_fitting_ellipsoid( const ArrayReturns an ellipsoid whose centre has no components if it fails.& r, // Array of position Vectors const Vector& w // Array of weights )
Ellipsoid best_fitting_ellipsoid( const Vector& c, // centre const ArrayReturns an ellipsoid whose centre has no components if it fails.& r, // Array of position Vectors const Vector& w // Array of weights )