2.0.0b10
catchment modelling framework
Loading...
Searching...
No Matches
point_vector Class Reference

Holds three arrays x,y and z for fast access of point coordinates. More...

+ Collaboration diagram for point_vector:

Detailed Description

Holds three arrays x,y and z for fast access of point coordinates.

Public Member Functions

 point_vector (ptrdiff_t size)
 Create a point vector of a specific size.
 
point get (ptrdiff_t index) const
 Return a point at index.
 
point operator[] (ptrdiff_t index) const
 Return point at index.
 
void set (ptrdiff_t index, cmf::geometry::point p)
 Change the point at index.
 
size_t size () const
 Return the number of points in the point_vector.
 

Public Attributes

cmf::math::num_array X
 x coordinates
 
cmf::math::num_array Y
 y coordinates
 
cmf::math::num_array Z
 z coordinates