|
Minsky: 3.17.0
|
rotate (x,y) by rot (in degrees) around the origin (x0, y0) can be used for rotating multiple points once constructed More...
#include <geometry.h>


Public Member Functions | |
| Rotate (float rot, float x0, float y0) | |
| bool | initialisedFrom (float rot, float x, float y) const |
| Point | operator() (float x1, float y1) const |
| rotate (x1,y1) More... | |
| Point | operator() (const Point &p) const |
| float | x (float x, float y) const |
| float | y (float x, float y) const |
Private Attributes | |
| float | angle |
| float | ca |
| float | sa |
| float | x0 |
| float | y0 |
Static Private Attributes | |
| static constexpr float | rad =M_PI/180.0 |
rotate (x,y) by rot (in degrees) around the origin (x0, y0) can be used for rotating multiple points once constructed
Definition at line 44 of file geometry.h.
|
inline |
Definition at line 51 of file geometry.h.
Referenced by minsky::Item::MemoisedRotator::update().

|
inline |
Definition at line 53 of file geometry.h.
References angle, rad, x(), x0, y(), and y0.
Referenced by minsky::Item::MemoisedRotator::update().


|
inline |
Definition at line 58 of file geometry.h.
References operator()().
Referenced by operator()().


|
inline |
Definition at line 59 of file geometry.h.
References ca, sa, x0, y(), and y0.
Referenced by minsky::VariableBase::clickType(), minsky::VariableBase::draw(), minsky::Item::draw(), minsky::Group::draw1edge(), minsky::OperationBase::drawUserFunction(), initialisedFrom(), minsky::Item::onItem(), operator()(), minsky::Item::MemoisedRotator::update(), and y().


|
inline |
Definition at line 60 of file geometry.h.
References ca, sa, x(), x0, and y0.
Referenced by minsky::VariableBase::clickType(), minsky::VariableBase::draw(), minsky::Item::draw(), minsky::Group::draw1edge(), minsky::OperationBase::drawUserFunction(), initialisedFrom(), minsky::Item::onItem(), operator()(), minsky::Item::MemoisedRotator::update(), and x().


|
private |
Definition at line 46 of file geometry.h.
Referenced by initialisedFrom().
|
private |
Definition at line 47 of file geometry.h.
|
staticprivate |
Definition at line 49 of file geometry.h.
Referenced by initialisedFrom().
|
private |
Definition at line 47 of file geometry.h.
|
private |
Definition at line 48 of file geometry.h.
Referenced by initialisedFrom(), x(), and y().
|
private |
Definition at line 48 of file geometry.h.
Referenced by initialisedFrom(), x(), and y().