/usr/include/Wt/WVector3 is in libwt-dev 3.3.4+dfsg-6ubuntu1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 | // This may look like C code, but it's really -*- C++ -*-
/*
* Copyright (C) 2014 Emweb bvba, Herent, Belgium.
*
* See the LICENSE file for terms of use.
*/
#ifndef WVECTOR3_H_
#define WVECTOR3_H_
#include "Wt/WGenericMatrix"
#include "Wt/WVector4"
namespace Wt {
class WT_API WVector3: public WGenericMatrix<double, 3, 1>
{
public:
WVector3();
WVector3(const WVector3 &other);
WVector3(const WVector4 &other);
WVector3(const WGenericMatrix<double, 3, 1>::MatrixType &m) {
impl() = m;
}
WVector3(const WGenericMatrix<double, 3, 1> &other);
explicit WVector3(double *d);
WVector3(double x, double y, double z);
const double &x() const;
const double &y() const;
const double &z() const;
double &x();
double &y();
double &z();
WVector3 normalize() const;
double length() const;
WVector3 cross(const WVector3 &other) const;
double dot(const WVector3 &other) const;
#ifdef WT_TARGET_JAVA
void setElement(int i, double v);
#endif
};
}
#endif // WVECTOR3_H_
|