12 #include <Eigen/Geometry> 28 VectorType
p0 = VectorType::Random(dim);
29 VectorType
p1 = VectorType::Random(dim);
31 VectorType d0 = VectorType::Random(dim).normalized();
35 Scalar s0 = internal::random<Scalar>();
36 Scalar s1 =
abs(internal::random<Scalar>());
45 const int Dim = LineType::AmbientDimAtCompileTime;
53 VectorType
p2 = VectorType::Random(dim);
54 VectorType
n2 = VectorType::Random(dim).normalized();
55 HyperplaneType hp(p2,n2);
56 Scalar
t = l0.intersectionParameter(hp);
57 VectorType pi = l0.pointAt(t);
71 Scalar* array3u = array3+1;
73 Line4a *
p1 = ::new(reinterpret_cast<void*>(array1)) Line4a;
74 Line4u *
p2 = ::new(reinterpret_cast<void*>(array2)) Line4u;
75 Line4u *
p3 = ::new(reinterpret_cast<void*>(array3u)) Line4u;
77 p1->origin().setRandom();
78 p1->direction().setRandom();
87 #if defined(EIGEN_VECTORIZE) && EIGEN_MAX_STATIC_ALIGN_BYTES>0 98 CALL_SUBTEST_2( parametrizedline_alignment<float>() );
100 CALL_SUBTEST_3( parametrizedline_alignment<double>() );
#define VERIFY_RAISES_ASSERT(a)
void parametrizedline_alignment()
Holds information about the various numeric (i.e. scalar) types allowed by Eigen. ...
#define VERIFY_IS_APPROX(a, b)
void test_geo_parametrizedline()
void parametrizedline(const LineType &_line)
EIGEN_DEFAULT_DENSE_INDEX_TYPE Index
The Index type as used for the API.
NumTraits< Scalar >::Real RealScalar
#define VERIFY_IS_MUCH_SMALLER_THAN(a, b)
const mpreal dim(const mpreal &a, const mpreal &b, mp_rnd_t r=mpreal::get_default_rnd())
The matrix class, also used for vectors and row-vectors.
friend const mpreal dim(const mpreal &a, const mpreal &b, mp_rnd_t rnd_mode)