HOG2
|
#include <Graphics.h>
Public Member Functions | |
point (float x=0, float y=0, float z=0) | |
bool | operator== (const point &p) const |
bool | operator!= (const point &p) const |
point & | operator+= (const float v) |
point & | operator-= (const float v) |
point & | operator*= (const float v) |
point & | operator/= (const float v) |
point & | operator+= (const point &i) |
point & | operator-= (const point &i) |
point | operator* (float i) const |
point | operator+ (const point &i) const |
point | operator- (const point &i) const |
float | length () const |
float | squaredLength () const |
void | normalise () |
point | operator* (const point &val) const |
Static Public Member Functions | |
static float | Dot (point a, point b) |
Public Attributes | |
float | x |
float | y |
float | z |
Definition at line 32 of file Graphics.h.
|
inline |
Definition at line 34 of file Graphics.h.
Definition at line 80 of file Graphics.h.
|
inline |
|
inline |
Definition at line 69 of file Graphics.h.
References length(), x, y, and z.
Referenced by Racetrack::GetCarCoordinates(), HandleCommand(), and operator*().
|
inline |
Definition at line 40 of file Graphics.h.
Definition at line 83 of file Graphics.h.
References normalise(), x, y, and z.
|
inline |
Definition at line 57 of file Graphics.h.
|
inline |
Definition at line 47 of file Graphics.h.
Definition at line 59 of file Graphics.h.
|
inline |
Definition at line 43 of file Graphics.h.
Definition at line 52 of file Graphics.h.
Definition at line 61 of file Graphics.h.
|
inline |
Definition at line 45 of file Graphics.h.
Definition at line 54 of file Graphics.h.
|
inline |
Definition at line 49 of file Graphics.h.
|
inline |
|
inline |
Definition at line 67 of file Graphics.h.
float Graphics::point::x |
Definition at line 36 of file Graphics.h.
Referenced by convertToGlobalHogCoordinate(), DoDrawCommands(), Witness< width, height >::DoLine(), Dot(), MNPuzzle< width, height >::Draw(), SnakeBird::SnakeBird::Draw(), Witness< width, height >::Draw(), CanonicalGrid::CanonicalGrid::DrawBasicOrdering(), DrawGraphics(), DrawLines(), SnakeBird::SnakeBird::DrawObject(), SnakeBird::SnakeBird::DrawObjects(), CanonicalGrid::CanonicalGrid::DrawOrdering(), Witness< width, height >::DrawRegionConstraint(), Hexagon::DrawSetup(), SnakeBird::SnakeBird::DrawSnakeSegment(), CanonicalGrid::CanonicalGrid::DrawStateLabel(), MapEnvironment::DrawStateLabel(), EditPointMult(), Graphics::Display::FillCircle(), Graphics::Display::FillSquare(), Graphics::Display::FrameCircle(), Graphics::Display::FrameSquare(), SnakeBird::SnakeBird::GetCenter(), SnakeBird::SnakeBird::GetPointFromCoordinate(), GlobalHOGToViewport(), GlobalHOGToViewportX(), HandleCommand(), Cubie::Initialize(), Racetrack::Legal(), length(), Line(), Witness< width, height >::Move(), normalise(), operator*(), operator*=(), Graphics::rect::operator*=(), operator+=(), operator-=(), operator/=(), Graphics::operator<<(), operator==(), Graphics::PointInRect(), PointToSVG(), squaredLength(), ViewportToGlobalHOG(), ViewportToGlobalHOGX(), and WindowToHOG().
float Graphics::point::y |
Definition at line 36 of file Graphics.h.
Referenced by convertToGlobalHogCoordinate(), DoDrawCommands(), Witness< width, height >::DoLine(), Dot(), MNPuzzle< width, height >::Draw(), SnakeBird::SnakeBird::Draw(), Witness< width, height >::Draw(), CanonicalGrid::CanonicalGrid::DrawBasicOrdering(), DrawGraphics(), DrawLines(), SnakeBird::SnakeBird::DrawObject(), SnakeBird::SnakeBird::DrawObjects(), CanonicalGrid::CanonicalGrid::DrawOrdering(), Witness< width, height >::DrawRegionConstraint(), Hexagon::DrawSetup(), SnakeBird::SnakeBird::DrawSnakeSegment(), CanonicalGrid::CanonicalGrid::DrawStateLabel(), MapEnvironment::DrawStateLabel(), EditPointMult(), Graphics::Display::FillCircle(), Graphics::Display::FillSquare(), Graphics::Display::FrameCircle(), Graphics::Display::FrameSquare(), Racetrack::GetCarCoordinates(), SnakeBird::SnakeBird::GetCenter(), SnakeBird::SnakeBird::GetPointFromCoordinate(), GlobalHOGToViewport(), GlobalHOGToViewportY(), HandleCommand(), Cubie::Initialize(), Racetrack::Legal(), length(), Line(), Witness< width, height >::Move(), normalise(), operator*(), operator*=(), Graphics::rect::operator*=(), operator+=(), operator-=(), operator/=(), Graphics::operator<<(), operator==(), Graphics::PointInRect(), PointToSVG(), squaredLength(), ViewportToGlobalHOG(), and WindowToHOG().
float Graphics::point::z |
Definition at line 36 of file Graphics.h.
Referenced by convertToGlobalHogCoordinate(), DoDrawCommands(), Dot(), DrawGraphics(), DrawLines(), EditPointMult(), HandleCommand(), Cubie::Initialize(), length(), Line(), normalise(), operator*(), operator*=(), operator+=(), operator-=(), operator/=(), Graphics::operator<<(), operator==(), and squaredLength().