ARB
|
#include <aw_position.hxx>
Public Member Functions | |
bool | valid () const |
Vector () | |
Vector (const double &X, const double &Y) | |
Vector (const double &X, const double &Y, const double &Length) | |
Vector (const Position &to) | |
Vector (const Position &from, const Position &to) | |
~Vector () | |
const double & | x () const |
const double & | y () const |
const Position & | endpoint () const |
Vector & | set (const double &X, const double &Y, double Length=-1) |
Vector & | setx (const double &X) |
Vector & | sety (const double &Y) |
const double & | length () const |
Vector & | operator*= (const double &factor) |
Vector & | operator/= (const double &divisor) |
Vector & | operator+= (const Vector &other) |
Vector & | operator-= (const Vector &other) |
Vector & | normalize () |
bool | is_normalized () const |
bool | has_length () const |
Vector & | set_length (double new_length) |
Vector & | neg () |
Vector & | negx () |
Vector & | negy () |
Vector & | flipxy () |
Vector & | rotate90deg () |
Vector & | rotate180deg () |
Vector & | rotate270deg () |
Vector & | rotate45deg () |
Vector & | rotate135deg () |
Vector & | rotate225deg () |
Vector & | rotate315deg () |
Vector | operator- () const |
Definition at line 146 of file aw_position.hxx.
|
inline |
Definition at line 153 of file aw_position.hxx.
Referenced by operator-().
|
inline |
Definition at line 154 of file aw_position.hxx.
References ISVALID.
|
inline |
Definition at line 155 of file aw_position.hxx.
References ISVALID.
|
inlineexplicit |
Definition at line 156 of file aw_position.hxx.
References ISVALID.
Definition at line 157 of file aw_position.hxx.
References ISVALID.
|
inline |
Definition at line 158 of file aw_position.hxx.
|
inline |
Definition at line 151 of file aw_position.hxx.
References is_nan(), and AW::Position::valid().
Referenced by AW::LineVector::valid(), and AW::Angle::valid().
|
inline |
Definition at line 160 of file aw_position.hxx.
References AW::Position::xpos().
Referenced by AW::Angle::cos(), AW::crosspoint(), flipxy(), AW::is_horizontal(), AW::is_vertical(), length(), neg(), negx(), operator*=(), AW::Position::operator+=(), operator+=(), operator-(), AW::Position::operator-=(), operator-=(), SEC_root::perform_autoscroll(), AW_zoomable::rtransform(), AW::scalarProduct(), AWT_canvas::scroll(), AWT_canvas::set_scrollbars(), AW_zoomable::transform(), and AW::Rectangle::width().
|
inline |
Definition at line 161 of file aw_position.hxx.
References AW::Position::ypos().
Referenced by calc_text_coordinates_near_tip(), AW::crosspoint(), BranchLinewidthScaler::do_scale(), flipxy(), AW::Rectangle::height(), AW::is_horizontal(), AW::is_vertical(), length(), neg(), negy(), operator*=(), AW::Position::operator+=(), operator+=(), operator-(), AW::Position::operator-=(), operator-=(), SEC_root::perform_autoscroll(), AW_zoomable::rtransform(), AW::scalarProduct(), AWT_canvas::scroll(), AWT_canvas::set_scrollbars(), AW::Angle::sin(), and AW_zoomable::transform().
|
inline |
Definition at line 162 of file aw_position.hxx.
Referenced by AW::nearlyEqual().
|
inline |
Definition at line 164 of file aw_position.hxx.
Referenced by operator*=(), operator+=(), and operator-=().
|
inline |
Definition at line 165 of file aw_position.hxx.
References AW::Position::setx().
|
inline |
Definition at line 166 of file aw_position.hxx.
References AW::Position::sety().
Referenced by calc_text_coordinates_near_tip().
|
inline |
Definition at line 168 of file aw_position.hxx.
Referenced by AW::Distance(), has_length(), is_normalized(), AW::LineVector::length(), normalize(), operator*=(), AW::Angle::operator+=(), AW::Angle::operator-=(), AW::orthogonal_projection(), SEC_root::paint(), SEC_root::paintAnnotation(), SEC_root::paintBackgroundColor(), set_length(), and AWT_canvas::zoom().
|
inline |
Definition at line 175 of file aw_position.hxx.
References abs, length(), set(), x(), and y().
Referenced by operator/=().
|
inline |
Definition at line 176 of file aw_position.hxx.
References operator*=().
Definition at line 178 of file aw_position.hxx.
Definition at line 179 of file aw_position.hxx.
|
inline |
Definition at line 181 of file aw_position.hxx.
References aw_assert, and length().
Referenced by AW::Angle::Angle(), AW::normalized(), and AW::Angle::operator=().
|
inline |
Definition at line 185 of file aw_position.hxx.
References length(), and AW::nearlyEqual().
Referenced by AW::Angle::Angle(), and SEC_oriented::set_abs_angle().
|
inline |
Definition at line 186 of file aw_position.hxx.
References length(), and AW::nearlyEqual().
Referenced by AW::are_distinct(), AW::are_parallel(), AW::crosspoint(), and AW::LineVector::has_length().
|
inline |
Definition at line 188 of file aw_position.hxx.
References length().
Referenced by SEC_root::paintAnnotation().
|
inline |
Definition at line 195 of file aw_position.hxx.
Referenced by rotate180deg().
|
inline |
Definition at line 196 of file aw_position.hxx.
References AW::Position::setx(), and x().
Referenced by rotate270deg().
|
inline |
Definition at line 197 of file aw_position.hxx.
References AW::Position::sety(), and y().
Referenced by rotate90deg().
|
inline |
Definition at line 199 of file aw_position.hxx.
Referenced by rotate270deg(), and rotate90deg().
|
inline |
Definition at line 201 of file aw_position.hxx.
References flipxy(), and negy().
Referenced by AW::nearest_linepoint(), SEC_root::paint(), SEC_root::paintAnnotation(), rotate135deg(), rotate45deg(), and AW::Angle::rotate90deg().
|
inline |
Definition at line 202 of file aw_position.hxx.
References neg().
Referenced by AW::Angle::rotate180deg(), and rotate225deg().
|
inline |
Definition at line 203 of file aw_position.hxx.
References flipxy(), and negx().
Referenced by SEC_root::paint(), SEC_root::paintAnnotation(), AW::Angle::rotate270deg(), rotate315deg(), and AWT_graphic_tree::show().
Vector & Vector::rotate45deg | ( | ) |
Definition at line 51 of file AW_position.cxx.
References rotate90deg().
Referenced by rotate135deg(), rotate225deg(), and rotate315deg().
|
inline |
Definition at line 206 of file aw_position.hxx.
References rotate45deg(), and rotate90deg().
|
inline |
Definition at line 207 of file aw_position.hxx.
References rotate180deg(), and rotate45deg().
|
inline |
Definition at line 208 of file aw_position.hxx.
References rotate270deg(), and rotate45deg().
|
inline |
Definition at line 210 of file aw_position.hxx.