#include <points.h>
Inheritance diagram for ICOORD:
Definition at line 34 of file points.h.
ICOORD::ICOORD | ( | ) | [inline] |
float ICOORD::angle | ( | ) | const [inline] |
void ICOORD::de_serialise_asc | ( | FILE * | f | ) |
Convert from ascii
Reimplemented in ICOORDELT.
Definition at line 54 of file points.cpp.
References de_serialise_INT32(), xcoord, and ycoord.
Referenced by BOX::de_serialise_asc().
00056 { 00057 xcoord = (INT16) de_serialise_INT32 (f); 00058 ycoord = (INT16) de_serialise_INT32 (f); 00059 }
float ICOORD::length | ( | ) | const [inline] |
ICOORD::NEWDELETE2 | ( | ICOORD | ) | const [inline] |
float ICOORD::pt_to_pt_dist | ( | const ICOORD & | pt | ) | const [inline] |
Definition at line 86 of file points.h.
00087 { 00088 return (float) sqrt (pt_to_pt_sqdist (pt)); 00089 }
float ICOORD::pt_to_pt_sqdist | ( | const ICOORD & | pt | ) | const [inline] |
void ICOORD::rotate | ( | const FCOORD & | vec | ) | [inline] |
Rotate an ICOORD by the given (normalized) (cos,sin) vector.
Definition at line 202 of file ipoints.h.
References xcoord, and ycoord.
Referenced by find_cblob_limits().
00203 { 00204 INT16 tmp; 00205 00206 tmp = (INT16) floor (xcoord * vec.x () - ycoord * vec.y () + 0.5); 00207 ycoord = (INT16) floor (ycoord * vec.x () + xcoord * vec.y () + 0.5); 00208 xcoord = tmp; 00209 }
void ICOORD::serialise_asc | ( | FILE * | f | ) |
Convert to ascii
Definition at line 43 of file points.cpp.
References serialise_INT32(), xcoord, and ycoord.
Referenced by BOX::serialise_asc().
00045 { 00046 serialise_INT32(f, xcoord); 00047 serialise_INT32(f, ycoord); 00048 }
void ICOORD::set_x | ( | INT16 | xin | ) | [inline] |
Definition at line 60 of file points.h.
Referenced by BOX::bounding_union(), compute_pitch_sd(), h_edge(), BOX::intersection(), loop_bounding_box(), BOX::move(), operator+=(), operator-=(), process_image_event(), POLY_BLOCK::rotate(), and v_edge().
00061 { 00062 xcoord = xin; //write new value 00063 }
void ICOORD::set_y | ( | INT16 | yin | ) | [inline] |
Definition at line 64 of file points.h.
Referenced by BOX::bounding_union(), PB_LINE_IT::get_line(), h_edge(), BOX::intersection(), loop_bounding_box(), operator+=(), operator-=(), process_image_event(), POLY_BLOCK::rotate(), and v_edge().
00065 { //value to set 00066 ycoord = yin; 00067 }
float ICOORD::sqlength | ( | ) | const [inline] |
INT16 ICOORD::y | ( | ) | const [inline] |
Definition at line 56 of file points.h.
Referenced by PDLSQ::add(), block_edges(), BOX::bounding_union(), BOX::BOX(), POLY_BLOCK::compute_bb(), BOX::contains(), convert_vec_block(), OL_BUCKETS::count_children(), create_edges_window(), create_to_win(), dot_of_i(), draw_raw_edge(), edgesteps_to_edgepts(), OL_BUCKETS::extract_children(), find_cblob_hlimits(), find_cblob_limits(), find_cblob_vlimits(), PB_LINE_IT::get_line(), BLOCK_LINE_IT::get_line(), h_edge(), horizontal_coutline_projection(), BOX::intersection(), join_edges(), loop_bounding_box(), BOX::major_overlap(), QUAD_COEFFS::move(), OL_BUCKETS::OL_BUCKETS(), OL_BUCKETS::operator()(), operator+=(), operator-=(), BOX::overlap(), PDLSQ::remove(), POLY_BLOCK::rotate(), v_edge(), vertical_coutline_projection(), vertical_cunderline_projection(), and POLY_BLOCK::winding_number().
00056 { //access_function 00057 return ycoord; 00058 }
INT16 ICOORD::xcoord [protected] |
x value
Definition at line 142 of file points.h.
Referenced by de_serialise_asc(), operator *(), operator *=(), operator!(), operator!=(), operator%(), operator+(), operator+=(), operator-(), operator-=(), operator/(), operator/=(), operator==(), pt_to_pt_sqdist(), rotate(), and serialise_asc().
INT16 ICOORD::ycoord [protected] |
y value
Definition at line 144 of file points.h.
Referenced by de_serialise_asc(), operator *(), operator *=(), operator!(), operator!=(), operator%(), operator+(), operator+=(), operator-(), operator-=(), operator/(), operator/=(), operator==(), pt_to_pt_sqdist(), rotate(), and serialise_asc().