# Magnum::Math::Geometry::Intersection namespace

• Reference

## Functions

template<class T>
const Vector2<T>& p, const Vector2<T>& r, const Vector2<T>& q, const Vector2<T>& s) -> std::pair<T, T> deprecated
Intersection of two line segments in 2D.
template<class T>
auto lineSegmentLine(const Vector2<T>& p, const Vector2<T>& r, const Vector2<T>& q, const Vector2<T>& s) -> T deprecated
Intersection of line segment and line in 2D.
template<class T>
auto planeLine(const Vector3<T>& planePosition, const Vector3<T>& planeNormal, const Vector3<T>& p, const Vector3<T>& r) -> T deprecated
Intersection of a plane and line.
template<class T>
auto pointFrustum(const Vector3<T>& point, const Frustum<T>& frustum) -> bool deprecated
Intersection of a point and a frustum.
template<class T>
auto boxFrustum(const Range3D<T>& box, const Frustum<T>& frustum) -> bool deprecated
Intersection of a range and a frustum.

## Function documentation

### template<class T> std::pair<T, T> Magnum::Math::Geometry::Intersection::lineSegmentLineSegment(const Vector2<T>& p, const Vector2<T>& r, const Vector2<T>& q, const Vector2<T>& s)

Intersection of two line segments in 2D.

### template<class T> T Magnum::Math::Geometry::Intersection::lineSegmentLine(const Vector2<T>& p, const Vector2<T>& r, const Vector2<T>& q, const Vector2<T>& s)

Intersection of line segment and line in 2D.

### template<class T> T Magnum::Math::Geometry::Intersection::planeLine(const Vector3<T>& planePosition, const Vector3<T>& planeNormal, const Vector3<T>& p, const Vector3<T>& r)

Intersection of a plane and line.

### template<class T> bool Magnum::Math::Geometry::Intersection::pointFrustum(const Vector3<T>& point, const Frustum<T>& frustum)

Intersection of a point and a frustum.

### template<class T> bool Magnum::Math::Geometry::Intersection::boxFrustum(const Range3D<T>& box, const Frustum<T>& frustum)

Intersection of a range and a frustum.