50 x += radius * sin(theta) * cos(phi);
51 z += radius * sin(theta) * sin(phi);
52 y += radius * cos(theta);
63 double intermediateRadius =
MakeRandomFloat( radiusInner, radiusOuter );
64 x += intermediateRadius * sin(theta) * cos(phi);
65 z += intermediateRadius * sin(theta) * sin(phi);
66 y += intermediateRadius * cos(theta);
88 inline void operator()(
double nx,
double ny,
double nz,
double nw) {
pt[0] = nx;
pt[1] = ny;
pt[2] = nz;
W = nw; }
92 inline const double w()
const {
return W; }
106 inline void operator()(
double nx,
double ny,
double nz) { pt[0] = nx; pt[1] = ny; pt[2] = nz; }
108 inline const double x()
const {
return(pt[0]); }
109 inline const double y()
const {
return(pt[1]); }
110 inline const double z()
const {
return(pt[2]); }
113 double dot3(
const GPoint &them)
const;
136 GVector(
double x,
double y,
double z);
139 double normalize_getlen();
141 double length2()
const;
147 G2Point(
double x,
double y);
149 inline void operator()(
double nx,
double ny) { pt[0] = nx; pt[1] = ny; }
151 inline const double x()
const {
return(pt[0]); }
152 inline const double y()
const {
return(pt[1]); }
160 G2iPoint(
int nx,
int ny);
162 inline void operator()(
int nx,
int ny) { x = nx; y = ny; }
168 inline bool operator==(
const G2iPoint &pt1,
const G2iPoint &pt2) {
169 return(pt1.x == pt2.x && pt1.y == pt2.y);
172 inline bool operator!=(
const G2iPoint &pt1,
const G2iPoint &pt2) {
173 return(pt1.x != pt2.x || pt1.y != pt2.y);
void operator()(double nx, double ny, double nz, double nw)
double dot4(const GVector4 &them) const
GaExpInl GaFloat length() const
itemID[count] Create count or of the specified() x() y(z)-Jump to the specified position in space.Stopped." ) COMMAND( translocate
GaExpInl GaVec3 & operator-=(const GaVec3 &oth)
GPoint(Ga::GaFloat X, Ga::GaFloat Y, Ga::GaFloat Z)
GPoint(const Ga::GaVec3 &oth)
GaExpInl GaVec3 & operator*=(GaFloat f)
GVector(const GPoint &oth)
double MakeRandomFloat(double low, double high)
Generates random real from interval [low; high].
GaExpInl GaVec3 & operator+=(const GaVec3 &oth)
GVector(const Ga::GaFloat *v)
GaExpInl GaFloat normalize()
GPoint(const Ga::GaFloat *v)
EvilNumber operator+(const EvilNumber &val, const EvilNumber &val2)
EvilNumber operator/(const EvilNumber &val, const EvilNumber &val2)
EvilNumber operator-(const EvilNumber &val, const EvilNumber &val2)
void MakeRandomPointOnSphereLayer(double radiusInner, double radiusOuter)
GaExpInl GaVec3 & operator/=(GaFloat f)
GPoint(const GPoint &oth)
GVector(const GPoint &from, const GPoint &to)
GVector(const Ga::GaVec3 &oth)
EvilNumber operator*(const EvilNumber &val, const EvilNumber &val2)
GVector(Ga::GaFloat X, Ga::GaFloat Y, Ga::GaFloat Z)
void MakeRandomPointOnSphere(double radius)