24 explicit Vector(
double v)
28 Vector(
const Vector &v)
34 Vector(
double vx,
double vy,
double vz)
42 Vector &operator=(
const Vector &v)
49 Vector &operator=(
double f)
54 Vector operator-()
const;
55 Vector &operator+=(
const Vector &);
56 Vector &operator-=(
const Vector &);
57 Vector &operator*=(
const Vector &);
58 Vector &operator*=(
double);
59 Vector &operator/=(
double);
61 friend Vector operator+(
const Vector &,
const Vector &);
62 friend Vector operator-(
const Vector &,
const Vector &);
63 friend Vector operator*(
const Vector &,
const Vector &);
64 friend Vector operator*(
double,
const Vector &);
65 friend Vector operator*(
const Vector &,
double);
66 friend Vector operator/(
const Vector &,
double);
67 friend Vector operator/(
const Vector &,
const Vector &);
68 friend double operator&(
const Vector &u,
const Vector &v)
70 return u.x * v.x + u.y * v.y + u.z * v.z;
72 friend Vector operator^(
const Vector &,
const Vector &);
73 double operator!()
const
75 return (
double)sqrt(x * x + y * y + z * z);
77 double &operator[](
int n)
81 int operator<(
double v)
83 return x < v && y < v && z < v;
85 int operator>(
double v)
87 return x > v && y > v && z > v;
91inline Vector Vector ::operator-()
const
98 return Vector(u.x + v.x, u.y + v.y, u.z + v.z);
101inline Vector operator-(
const Vector &u,
const Vector &v)
103 return Vector(u.x - v.x, u.y - v.y, u.z - v.z);
106inline Vector operator*(
const Vector &u,
const Vector &v)
108 return Vector(u.x * v.x, u.y * v.y, u.z * v.z);
111inline Vector operator*(
const Vector &u,
double f)
113 return Vector(u.x * f, u.y * f, u.z * f);
116inline Vector operator*(
double f,
const Vector &v)
118 return Vector(f * v.x, f * v.y, f * v.z);
121inline Vector operator/(
const Vector &v,
double f)
123 return Vector(v.x / f, v.y / f, v.z / f);
126inline Vector operator/(
const Vector &u,
const Vector &v)
128 return Vector(u.x / v.x, u.y / v.y, u.z / v.z);
131inline Vector &Vector ::operator+=(
const Vector &v)
139inline Vector &Vector ::operator-=(
const Vector &v)
147inline Vector &Vector ::operator*=(
double v)
155inline Vector &Vector ::operator*=(
const Vector &v)
163inline Vector &Vector ::operator/=(
double v)
171inline Vector Normalize(
const Vector &v)
QCA_EXPORT const SecureArray operator+(const SecureArray &a, const SecureArray &b)
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Sat Dec 21 2024 17:04:46 by
doxygen 1.12.0 written
by
Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.