Was this page helpful?
DseLineString¶
-
struct DseLineString¶
Public Functions
-
DseLineString *dse_line_string_new()¶
Creates a new line string.
See also
- Returns:
Returns a line string that must be freed.
-
void dse_line_string_free(DseLineString *line_string)¶
Frees a line string instance.
- Parameters:
line_string – [in]
-
void dse_line_string_reset(DseLineString *line_string)¶
Resets a line string so that it can be reused.
- Parameters:
line_string – [in]
-
void dse_line_string_reserve(DseLineString *line_string, cass_uint32_t num_points)¶
Reserves enough memory to contain the provided number of points. This can be use to reduce memory allocations, but it is not required.
- Parameters:
line_string – [in]
num_points – [in]
-
CassError dse_line_string_add_point(DseLineString *line_string, cass_double_t x, cass_double_t y)¶
Adds a point to the line string.
- Parameters:
line_string – [in]
x – [in]
y – [in]
- Returns:
CASS_OK if successful, otherwise an error occurred.
-
CassError dse_line_string_finish(DseLineString *line_string)¶
Finishes the contruction of a line string.
- Parameters:
line_string – [in]
- Returns:
CASS_OK if successful, otherwise an error occurred.
-
DseLineString *dse_line_string_new()¶