12 #include <Eigen/Geometry>
22 const Index dim = _line.dim();
27 typedef Matrix<
Scalar, HyperplaneType::AmbientDimAtCompileTime,
28 HyperplaneType::AmbientDimAtCompileTime>
MatrixType;
33 VectorType d0 = VectorType::Random(dim).normalized();
37 Scalar s0 = internal::random<Scalar>();
38 Scalar s1 =
abs(internal::random<Scalar>());
47 const int Dim = LineType::AmbientDimAtCompileTime;
57 HyperplaneType hp(
p2,
n2);
67 MatrixType rot = MatrixType::Random(dim,dim).householderQr().householderQ();
98 Scalar* array3u = array3+1;
100 Line4a *
p1 = ::new(
reinterpret_cast<void*
>(array1)) Line4a;
101 Line4u *
p2 = ::new(
reinterpret_cast<void*
>(array2)) Line4u;
102 Line4u *
p3 = ::new(
reinterpret_cast<void*
>(array3u)) Line4u;
104 p1->origin().setRandom();
105 p1->direction().setRandom();