QCAD
Open Source 2D CAD
RTranslation.h
Go to the documentation of this file.
1 
20 #ifndef RTRANSLATION_H
21 #define RTRANSLATION_H
22 
23 #include "operations_global.h"
24 
25 #include "RTransformation.h"
26 #include "RVector.h"
27 
35 public:
36  RTranslation(const RVector& offset, double rotationAngle = 0.0, double scaleFactor = 1.0, const RVector& center = RVector::nullVector)
37  : offset(offset),
38  rotationAngle(rotationAngle),
39  scaleFactor(scaleFactor),
40  center(center) {}
41 
43  double rotationAngle;
44  double scaleFactor;
46 };
47 
49 
50 #endif
RTranslation(const RVector &offset, double rotationAngle=0.0, double scaleFactor=1.0, const RVector &center=RVector::nullVector)
Definition: RTranslation.h:36
Represents a 3d vector (x/y/z).
Definition: RVector.h:46
Copyright (c) 2011-2016 by Andrew Mustun.
Definition: RTranslation.h:34
#define QCADOPERATIONS_EXPORT
Definition: operations_global.h:10
Q_DECLARE_METATYPE(RMath *)
Copyright (c) 2011-2016 by Andrew Mustun.
Definition: RTransformation.h:32
RVector offset
Definition: RTranslation.h:42
static const RVector nullVector
null vector
Definition: RVector.h:312
double rotationAngle
Definition: RTranslation.h:43
double scaleFactor
Definition: RTranslation.h:44
RVector center
Definition: RTranslation.h:45