manpagez: man pages & more
info mathgl
Home | html | info | man
[ < ] [ > ]   [ << ] [ Up ] [ >> ]         [Top] [Contents] [Index] [ ? ]

7.5 mglPoint class

Structure describes point in space. This structure is defined in #include <mgl/mgl.h>

Parameter of mglVar: float x, y, z

Point coordinates. By default all values are zero.

Library Function: inline mglPoint operator+ (const mglPoint &a, const mglPoint &b)

Point of summation (summation of vectors).

Library Function: inline mglPoint operator- (const mglPoint &a, const mglPoint &b)

Point of difference (difference of vectors).

Library Function: inline mglPoint operator* (float a, const mglPoint &b)

Multiplies (scale) points by number.

Library Function: inline mglPoint operator* (const mglPoint &a, float b)

Multiplies (scale) points by number.

Library Function: inline mglPoint operator/ (const mglPoint &a, float b)

Multiplies (scale) points by number 1/b.

Library Function: inline float operator- (const mglPoint &a, const mglPoint &b)

Scalar product of vectors.

Library Function: inline mglPoint operator^ (const mglPoint &a, const mglPoint &b)

Cross-product of vectors.

Library Function: inline mglPoint operator& (const mglPoint &a, const mglPoint &b)

The part of a which is perpendicular to vector b.

Library Function: inline mglPoint operator| (const mglPoint &a, const mglPoint &b)

The part of a which is parallel to vector b.

Library Function: inline mglPoint operator! (const mglPoint &a)

Return vector perpendicular to vector a.

Library Function: inline bool Norm (const mglPoint &a)

Return the norm |a|^2 of vector a.

Library Function: inline bool operator== (const mglPoint &a, const mglPoint &b)

Return true if points are the same.

Library Function: inline bool operator!= (const mglPoint &a, const mglPoint &b)

Return true if points are different.


[ < ] [ > ]   [ << ] [ Up ] [ >> ]         [Top] [Contents] [Index] [ ? ]
© manpagez.com 2000-2024
Individual documents may contain additional copyright information.