PointCloud2BIM Library
1.0
Library to facilitate the transpormation of point clouds into digital BIM representation
|
Public Member Functions | |
Vector3 () | |
Creates a zero vector. | |
Vector3 (double vx, double vy, double vz) | |
Creates a new vector with specified coordinates. More... | |
Vector3 (double vx, double vy) | |
Creates a new 2D vector with specified coordinates. More... | |
Vector3 (PointXYZ &p) | |
Creates vector from 3D point. More... | |
Vector3 (PointXYZNormal &p) | |
Creates vector from 3D point with normals. More... | |
Vector3 | operator+ (const Vector3 &o) |
Operator for vector addition. More... | |
Vector3 & | operator+= (const Vector3 &o) |
Operator for addition to a vector. More... | |
Vector3 | operator- () |
Operator for vector inversion. More... | |
Vector3 | operator- (const Vector3 o) |
Operator for vector subtraction. More... | |
Vector3 & | operator-= (const Vector3 o) |
Operator for subtraction from a vector. More... | |
Vector3 | operator* (const double s) |
Operator for vector multiplication. More... | |
Vector3 & | operator*= (const double s) |
Operator for vector multiplication. More... | |
Vector3 | operator/ (const double s) |
Operator for vector division. More... | |
Vector3 & | operator/= (const double s) |
Operator for vector division. More... | |
double | length () |
Calculates length of a vector. More... | |
double | length_sqr () |
Calculates squared length of a vector. More... | |
Vector3 | normalized () |
Normalize vector. More... | |
Vector3 & | normalize () |
Normalize vector. More... | |
double | operator* (const Vector3 o) |
Operator for dot product of two vectors. More... | |
Vector3 | operator^ (const Vector3 o) |
Calculates cross product of two vectors. More... | |
Vector3 & | operator^= (const Vector3 o) |
Calculates cross product of two vectors. More... | |
Public Attributes | |
double | x |
X component. | |
double | y |
Y component. | |
double | z |
Z component. | |
|
inline |
Creates a new vector with specified coordinates.
vx | X component |
vy | Y component |
vz | Z component |
|
inline |
Creates a new 2D vector with specified coordinates.
vx | X component |
vy | Y component |
|
inline |
Creates vector from 3D point with normals.
p | PointXYZNormal |
|
inline |
Calculates length of a vector.
|
inline |
Calculates squared length of a vector.
|
inline |
Normalize vector.
|
inline |
Normalize vector.
|
inline |
Operator for vector multiplication.
s | Scalar |
|
inline |
Operator for dot product of two vectors.
o | Vector |
|
inline |
Operator for vector multiplication.
s | Scalar |
Operator for vector addition.
o | Vector to be added |
Operator for addition to a vector.
o | Vector to be added |
|
inline |
Operator for vector inversion.
Operator for vector subtraction.
o | Vector to be subtracted |
Operator for subtraction from a vector.
o | Vector to subtract |
|
inline |
Operator for vector division.
s | Scalar |
|
inline |
Operator for vector division.
s | Scalar |
Calculates cross product of two vectors.
o | Vector |
Calculates cross product of two vectors.
o | Vector |