Collection of reference coordinates. More...
Go to the source code of this file.
Functions | |
struct ref_set * | ref_set_new () |
Create a new reference set. | |
void | ref_set_delete (struct ref_set *s) |
Create a new reference set. | |
void | ref_set_insert (struct ref_set *s, const mpfr_t x, const mpfr_t y) |
Insert a point into a reference set. | |
bool | ref_set_contains (const struct ref_set *s, const mpfr_t x, const mpfr_t y) |
Check if a point is in a reference set. |
Collection of reference coordinates.
Definition in file ref_set.c.
bool ref_set_contains | ( | const struct ref_set * | s, |
const mpfr_t | x, | ||
const mpfr_t | y | ||
) |
Check if a point is in a reference set.
s | The reference set. |
x | The real coordinate of the reference. |
y | The imaginary coordinate of the reference. |
Definition at line 73 of file ref_set.c.
References ref_set_node::next, ref_set::set, ref_set_node::x, and ref_set_node::y.
Referenced by find_ref(), and fpxx_start().
void ref_set_delete | ( | struct ref_set * | s | ) |
Create a new reference set.
s | The reference set to delete. |
Definition at line 31 of file ref_set.c.
References debug_message, ref_set_node::next, ref_set::set, ref_set_node::x, and ref_set_node::y.
Referenced by render_calculate().
void ref_set_insert | ( | struct ref_set * | s, |
const mpfr_t | x, | ||
const mpfr_t | y | ||
) |
Insert a point into a reference set.
You should check membership before insertion to avoid duplicates.
s | The reference set. |
x | The real coordinate of the reference. |
y | The imaginary coordinate of the reference. |
Definition at line 53 of file ref_set.c.
References debug_message, ref_set_node::next, ref_set::set, ref_set_node::x, and ref_set_node::y.
Referenced by find_ref(), and fpxx_start().
|
read |
Create a new reference set.
Definition at line 20 of file ref_set.c.
References debug_message.
Referenced by fpxx_start().