61 : n_(vec(0), vec(1), vec(2)), d_(vec(3)) {}
74 void print(
const std::string&
s = std::string())
const;
105 inline static size_t Dim() {
110 inline size_t dim()
const {
124 return Vector4(unit_vec[0], unit_vec[1], unit_vec[2], d_);
void print(const Matrix &A, const string &s, ostream &stream)
size_t dim() const
Dimensionality of tangent space = 3 DOF.
Both ManifoldTraits and Testable.
OrientedPlane3(const Unit3 &n, double d)
Construct from a Unit3 and a distance.
bool equals(const Unit3 &s, double tol=1e-9) const
The equals function with tolerance.
Vector3 unitVector(OptionalJacobian< 3, 2 > H={}) const
Return unit-norm Vector.
bool equals(const OrientedPlane3 &s, double tol=1e-9) const
The equals function with tolerance.
set noclip points set clip one set noclip two set bar set border lt lw set xdata set ydata set zdata set x2data set y2data set boxwidth set dummy y set format x g set format y g set format x2 g set format y2 g set format z g set angles radians set nogrid set key title set key left top Right noreverse box linetype linewidth samplen spacing width set nolabel set noarrow set nologscale set logscale x set set pointsize set encoding default set nopolar set noparametric set set set set surface set nocontour set clabel set mapping cartesian set nohidden3d set cntrparam order set cntrparam linear set cntrparam levels auto set cntrparam points set size set set xzeroaxis lt lw set x2zeroaxis lt lw set yzeroaxis lt lw set y2zeroaxis lt lw set tics in set ticslevel set tics set mxtics default set mytics default set mx2tics default set my2tics default set xtics border mirror norotate autofreq set ytics border mirror norotate autofreq set ztics border nomirror norotate autofreq set nox2tics set noy2tics set timestamp bottom norotate set rrange [*:*] noreverse nowriteback set trange [*:*] noreverse nowriteback set urange [*:*] noreverse nowriteback set vrange [*:*] noreverse nowriteback set xlabel matrix size set x2label set timefmt d m y n H
OrientedPlane3()
Default constructor.
static size_t Dim()
Dimensionality of tangent space = 3 DOF.
Represents an infinite plane in 3D, which is composed of a planar normal and its perpendicular distan...
double distance(OptionalJacobian< 1, 3 > H={}) const
Return the perpendicular distance to the origin.
Represents a 3D point on a unit sphere.
double d_
The perpendicular distance to this plane.
OrientedPlane3(double a, double b, double c, double d)
Construct from four numbers of plane coeffcients (a, b, c, d)
Array< int, Dynamic, 1 > v
Array< double, 1, 3 > e(1./3., 0.5, 2.)
EIGEN_DONT_INLINE void transform(const Transformation &t, Data &data)
Unit3 normal(OptionalJacobian< 2, 3 > H={}) const
Return the normal.
Vector4 planeCoefficients() const
Returns the plane coefficients.
Unit3 n_
The direction of the planar normal.
OrientedPlane3(const Vector4 &vec)
Construct from a vector of plane coefficients.
static const Eigen::MatrixBase< Vector2 >::ConstantReturnType Z_2x1