nlib
nn::nlib::simd::Containment Class Reference

The class with the collection of functions that determine containment relations. More...

#include "nn/nlib/simd/SimdGeometry.h"

Static Public Member Functions

static bool SpherePoint (SimdSphereArg sphere, SimdVectorArg point) noexcept
 Determines whether a sphere contains a specific point in three-dimensional space. More...
 
static bool SphereTriangle (SimdSphereArg sphere, SimdVectorArg triangle_point0, SimdVectorArg triangle_point1, SimdVectorArg triangle_point2) noexcept
 Determines whether a sphere contains a triangle in three-dimensional space. More...
 
static bool SphereOrientedBox (SimdSphereArg sphere, const OrientedBox &obb) noexcept
 Determines whether a sphere contains an OBB in three-dimensional space. More...
 
static bool SphereAxisAlignedBox (SimdSphereArg sphere, const AxisAlignedBox &aabb) noexcept
 Determines whether a sphere contains an AABB in three-dimensional space. More...
 
static bool SphereSphere (SimdSphereArg sphere, SimdSphereArg contained_sphere) noexcept
 Determines whether one sphere contains another sphere in three-dimensional space. More...
 
static bool SphereFrustum (SimdSphereArg sphere, const Frustum &frustum) noexcept
 Determines whether a sphere contains a frustum in three-dimensional space. More...
 
static bool AxisAlignedBoxPoint (const AxisAlignedBox &aabb, SimdVectorArg point) noexcept
 Determines whether an AABB contains a specific point in three-dimensional space. More...
 
static bool AxisAlignedBoxTriangle (const AxisAlignedBox &aabb, SimdVectorArg triangle_point0, SimdVectorArg triangle_point1, SimdVectorArg triangle_point2) noexcept
 Determines whether an AABB contains a triangle in three-dimensional space. More...
 
static bool AxisAlignedBoxOrientedBox (const AxisAlignedBox &aabb, const OrientedBox &obb) noexcept
 Determines whether an AABB contains an OBB in three-dimensional space. More...
 
static bool AxisAlignedBoxAxisAlignedBox (const AxisAlignedBox &aabb, const AxisAlignedBox &contained_aabb) noexcept
 Determines whether one AABB contains another AABB in three-dimensional space. More...
 
static bool AxisAlignedBoxSphere (const AxisAlignedBox &aabb, SimdSphereArg sphere) noexcept
 Determines whether an AABB contains a sphere in three-dimensional space. More...
 
static bool AxisAlignedBoxFrustum (const AxisAlignedBox &aabb, const Frustum &frustum) noexcept
 Determines whether an AABB contains a frustum in three-dimensional space. More...
 
static bool OrientedBoxPoint (const OrientedBox &box, SimdVectorArg point) noexcept
 Determines whether an OBB contains a specific point in three-dimensional space. More...
 
static bool OrientedBoxTriangle (const OrientedBox &box, SimdVectorArg triangle_point0, SimdVectorArg triangle_point1, SimdVectorArg triangle_point2) noexcept
 Determines whether an OBB contains a triangle in three-dimensional space. More...
 
static bool OrientedBoxOrientedBox (const OrientedBox &box, const OrientedBox &box_contained) noexcept
 Determines whether one OBB contains another OBB in three-dimensional space. More...
 
static bool OrientedBoxAxisAlignedBox (const OrientedBox &box, const AxisAlignedBox &aabb) noexcept
 Determines whether an OBB contains an AABB in three-dimensional space. More...
 
static bool OrientedBoxSphere (const OrientedBox &box, SimdSphereArg sphere) noexcept
 Determines whether an OBB contains a sphere in three-dimensional space. More...
 
static bool OrientedBoxFrustum (const OrientedBox &box, const Frustum &frustum) noexcept
 Determines whether an OBB contains a frustum in three-dimensional space. More...
 
static bool FrustumPoint (const Frustum &frustum, SimdVectorArg point) noexcept
 Determines whether a frustum contains a specific point in three-dimensional space. More...
 
static bool FrustumTriangle (const Frustum &frustum, SimdVectorArg triangle_point0, SimdVectorArg triangle_point1, SimdVectorArg triangle_point2) noexcept
 Determines whether a frustum contains a triangle in three-dimensional space. More...
 
static bool FrustumSphere (const Frustum &frustum, SimdSphereArg sphere) noexcept
 Determines whether a frustum contains a sphere in three-dimensional space. More...
 
static bool FrustumAxisAlignedBox (const Frustum &frustum, const AxisAlignedBox &aabb) noexcept
 Determines whether a frustum contains an AABB in three-dimensional space. More...
 
static bool FrustumOrientedBox (const Frustum &frustum, const OrientedBox &box) noexcept
 Determines whether a frustum contains an OBB in three-dimensional space. More...
 
static bool FrustumFrustum (const Frustum &frustum, const Frustum &contained) noexcept
 Determines whether one frustum contains another frustum. More...
 

Detailed Description

The class with the collection of functions that determine containment relations.

Description
All members of this class are static functions. The class cannot be instantiated.

Definition at line 268 of file SimdGeometry.h.

Member Function Documentation

§ AxisAlignedBoxAxisAlignedBox()

nn::nlib::simd::Containment::AxisAlignedBoxAxisAlignedBox ( const AxisAlignedBox aabb,
const AxisAlignedBox contained 
)
staticnoexcept

Determines whether one AABB contains another AABB in three-dimensional space.

Parameters
[in]aabbAn AABB in three-dimensional space.
[in]containedAn AABB in three-dimensional space.
Returns
Returns true if one contains the other.

§ AxisAlignedBoxFrustum()

nn::nlib::simd::Containment::AxisAlignedBoxFrustum ( const AxisAlignedBox aabb,
const Frustum frustum 
)
staticnoexcept

Determines whether an AABB contains a frustum in three-dimensional space.

Parameters
[in]aabbAn AABB in three-dimensional space.
[in]frustumA frustum.
Returns
Returns true if one contains the other.

§ AxisAlignedBoxOrientedBox()

nn::nlib::simd::Containment::AxisAlignedBoxOrientedBox ( const AxisAlignedBox aabb,
const OrientedBox obb 
)
staticnoexcept

Determines whether an AABB contains an OBB in three-dimensional space.

Parameters
[in]aabbAn AABB in three-dimensional space.
[in]obbAn OBB in three-dimensional space.
Returns
Returns true if one contains the other.

§ AxisAlignedBoxPoint()

nn::nlib::simd::Containment::AxisAlignedBoxPoint ( const AxisAlignedBox aabb,
SimdVectorArg  point 
)
staticnoexcept

Determines whether an AABB contains a specific point in three-dimensional space.

Parameters
[in]aabbAn AABB in three-dimensional space.
[in]pointA point in three-dimensional space.
Returns
Returns true if one contains the other.

§ AxisAlignedBoxSphere()

nn::nlib::simd::Containment::AxisAlignedBoxSphere ( const AxisAlignedBox aabb,
SimdSphereArg  sphere 
)
staticnoexcept

Determines whether an AABB contains a sphere in three-dimensional space.

Parameters
[in]aabbAn AABB in three-dimensional space.
[in]sphereA sphere in three-dimensional space.
Returns
Returns true if one contains the other.

§ AxisAlignedBoxTriangle()

nn::nlib::simd::Containment::AxisAlignedBoxTriangle ( const AxisAlignedBox aabb,
SimdVectorArg  triangle_point0,
SimdVectorArg  triangle_point1,
SimdVectorArg  triangle_point2 
)
staticnoexcept

Determines whether an AABB contains a triangle in three-dimensional space.

Parameters
[in]aabbAn AABB in three-dimensional space.
[in]triangle_point0A three-dimensional vector representing a vertex of the triangle.
[in]triangle_point1A three-dimensional vector representing a vertex of the triangle.
[in]triangle_point2A three-dimensional vector representing a vertex of the triangle.
Returns
Returns true if one contains the other.

§ FrustumAxisAlignedBox()

nn::nlib::simd::Containment::FrustumAxisAlignedBox ( const Frustum frustum,
const AxisAlignedBox aabb 
)
staticnoexcept

Determines whether a frustum contains an AABB in three-dimensional space.

Parameters
[in]frustumA frustum.
[in]aabbAn AABB in three-dimensional space.
Returns
Returns true if one contains the other.

§ FrustumFrustum()

nn::nlib::simd::Containment::FrustumFrustum ( const Frustum frustum,
const Frustum contained 
)
staticnoexcept

Determines whether one frustum contains another frustum.

Parameters
[in]frustumA frustum.
[in]containedA frustum.
Returns
Returns true if one contains the other.

§ FrustumOrientedBox()

nn::nlib::simd::Containment::FrustumOrientedBox ( const Frustum frustum,
const OrientedBox box 
)
staticnoexcept

Determines whether a frustum contains an OBB in three-dimensional space.

Parameters
[in]frustumA frustum.
[in]boxAn OBB in three-dimensional space.
Returns
Returns true if one contains the other.

§ FrustumPoint()

nn::nlib::simd::Containment::FrustumPoint ( const Frustum frustum,
SimdVectorArg  point 
)
staticnoexcept

Determines whether a frustum contains a specific point in three-dimensional space.

Parameters
[in]frustumA frustum.
[in]pointA point in three-dimensional space.
Returns
Returns true if one contains the other.

§ FrustumSphere()

nn::nlib::simd::Containment::FrustumSphere ( const Frustum frustum,
SimdSphereArg  sphere 
)
staticnoexcept

Determines whether a frustum contains a sphere in three-dimensional space.

Parameters
[in]frustumA frustum.
[in]sphereA sphere in three-dimensional space.
Returns
Returns true if one contains the other.

§ FrustumTriangle()

nn::nlib::simd::Containment::FrustumTriangle ( const Frustum frustum,
SimdVectorArg  triangle_point0,
SimdVectorArg  triangle_point1,
SimdVectorArg  triangle_point2 
)
staticnoexcept

Determines whether a frustum contains a triangle in three-dimensional space.

Parameters
[in]frustumA frustum.
[in]triangle_point0A three-dimensional vector representing a vertex of the triangle.
[in]triangle_point1A three-dimensional vector representing a vertex of the triangle.
[in]triangle_point2A three-dimensional vector representing a vertex of the triangle.
Returns
Returns true if one contains the other.

§ OrientedBoxAxisAlignedBox()

nn::nlib::simd::Containment::OrientedBoxAxisAlignedBox ( const OrientedBox box,
const AxisAlignedBox aabb 
)
staticnoexcept

Determines whether an OBB contains an AABB in three-dimensional space.

Parameters
[in]boxAn OBB in three-dimensional space.
[in]aabbAn AABB in three-dimensional space.
Returns
Returns true if one contains the other.

§ OrientedBoxFrustum()

nn::nlib::simd::Containment::OrientedBoxFrustum ( const OrientedBox box,
const Frustum frustum 
)
staticnoexcept

Determines whether an OBB contains a frustum in three-dimensional space.

Parameters
[in]boxAn OBB in three-dimensional space.
[in]frustumA frustum.
Returns
Returns true if one contains the other.

§ OrientedBoxOrientedBox()

nn::nlib::simd::Containment::OrientedBoxOrientedBox ( const OrientedBox box,
const OrientedBox contained 
)
staticnoexcept

Determines whether one OBB contains another OBB in three-dimensional space.

Parameters
[in]boxAn OBB in three-dimensional space.
[in]containedAn OBB in three-dimensional space.
Returns
Returns true if one contains the other.

§ OrientedBoxPoint()

nn::nlib::simd::Containment::OrientedBoxPoint ( const OrientedBox box,
SimdVectorArg  point 
)
staticnoexcept

Determines whether an OBB contains a specific point in three-dimensional space.

Parameters
[in]boxAn OBB in three-dimensional space.
[in]pointA point in three-dimensional space.
Returns
Returns true if one contains the other.

§ OrientedBoxSphere()

nn::nlib::simd::Containment::OrientedBoxSphere ( const OrientedBox box,
SimdSphereArg  sphere 
)
staticnoexcept

Determines whether an OBB contains a sphere in three-dimensional space.

Parameters
[in]boxAn OBB in three-dimensional space.
[in]sphereA sphere in three-dimensional space.
Returns
Returns true if one contains the other.

§ OrientedBoxTriangle()

nn::nlib::simd::Containment::OrientedBoxTriangle ( const OrientedBox box,
SimdVectorArg  triangle_point0,
SimdVectorArg  triangle_point1,
SimdVectorArg  triangle_point2 
)
staticnoexcept

Determines whether an OBB contains a triangle in three-dimensional space.

Parameters
[in]boxAn OBB in three-dimensional space.
[in]triangle_point0A three-dimensional vector representing a vertex of the triangle.
[in]triangle_point1A three-dimensional vector representing a vertex of the triangle.
[in]triangle_point2A three-dimensional vector representing a vertex of the triangle.
Returns
Returns true if one contains the other.

§ SphereAxisAlignedBox()

nn::nlib::simd::Containment::SphereAxisAlignedBox ( SimdSphereArg  sphere,
const AxisAlignedBox aabb 
)
staticnoexcept

Determines whether a sphere contains an AABB in three-dimensional space.

Parameters
[in]sphereA sphere in three-dimensional space.
[in]aabbAn AABB in three-dimensional space.
Returns
Returns true if one contains the other.

§ SphereFrustum()

nn::nlib::simd::Containment::SphereFrustum ( SimdSphereArg  sphere,
const Frustum frustum 
)
staticnoexcept

Determines whether a sphere contains a frustum in three-dimensional space.

Parameters
[in]sphereA sphere in three-dimensional space.
[in]frustumA frustum.
Returns
Returns true if one contains the other.

§ SphereOrientedBox()

nn::nlib::simd::Containment::SphereOrientedBox ( SimdSphereArg  sphere,
const OrientedBox obb 
)
staticnoexcept

Determines whether a sphere contains an OBB in three-dimensional space.

Parameters
[in]sphereA sphere in three-dimensional space.
[in]obbAn OBB in three-dimensional space.
Returns
Returns true if one contains the other.

§ SpherePoint()

nn::nlib::simd::Containment::SpherePoint ( SimdSphereArg  sphere,
SimdVectorArg  point 
)
staticnoexcept

Determines whether a sphere contains a specific point in three-dimensional space.

Parameters
[in]sphereA sphere in three-dimensional space.
[in]pointA point in three-dimensional space.
Returns
Returns true if one contains the other.

§ SphereSphere()

nn::nlib::simd::Containment::SphereSphere ( SimdSphereArg  sphere,
SimdSphereArg  contained 
)
staticnoexcept

Determines whether one sphere contains another sphere in three-dimensional space.

Parameters
[in]sphereA sphere in three-dimensional space.
[in]containedA sphere in three-dimensional space.
Returns
Returns true if one contains the other.

§ SphereTriangle()

nn::nlib::simd::Containment::SphereTriangle ( SimdSphereArg  sphere,
SimdVectorArg  triangle_point0,
SimdVectorArg  triangle_point1,
SimdVectorArg  triangle_point2 
)
staticnoexcept

Determines whether a sphere contains a triangle in three-dimensional space.

Parameters
[in]sphereA sphere in three-dimensional space.
[in]triangle_point0A three-dimensional vector representing a vertex of the triangle.
[in]triangle_point1A three-dimensional vector representing a vertex of the triangle.
[in]triangle_point2A three-dimensional vector representing a vertex of the triangle.
Returns
Returns true if one contains the other.

The documentation for this class was generated from the following files: