The class with the collection of functions that handle planes in three-dimensional space.
More...
#include "nn/nlib/simd/SimdGeometry.h"
|
static f128 | Dot (SimdPlaneArg plane, SimdVectorArg vec) noexcept |
| Calculates the dot product between a plane and a four-dimensional vector. More...
|
|
static f128 | DotCoord (SimdPlaneArg plane, SimdVectorArg vec) noexcept |
| Calculates the dot product between a plane and a four-dimensional vector. The calculation treats vec[3] as 1 . More...
|
|
static f128 | DotNormal (SimdPlaneArg plane, SimdVectorArg vec) noexcept |
| Calculates the dot product between a plane and a four-dimensional vector. The calculation treats vec[3] as 0 . More...
|
|
static SimdPlane | FromPointAndNormal (SimdVectorArg point, SimdVectorArg normal) noexcept |
| Creates a plane from a point on the plane and a normal vector. More...
|
|
static SimdPlane | FromPoint (SimdVectorArg point0, SimdVectorArg point1, SimdVectorArg point2) noexcept |
| Creates a plane that passes through three points. More...
|
|
static SimdPlane | Normalize (SimdPlaneArg plane) noexcept |
| Returns a plane with its normal vector (plane[0], plane[1], plane[2]) normalized. More...
|
|
static SimdPlane | NormalizeEst (SimdPlaneArg plane) noexcept |
| Returns a plane with its normal vector (plane[0], plane[1], plane[2]) normalized with relatively low precision. More...
|
|
static SimdPlane | Transform (SimdPlaneArg plane, SimdMatrixArg m) noexcept |
| Transforms a plane using a matrix. More...
|
|
The class with the collection of functions that handle planes in three-dimensional space.
- Description
- The planes handled by this class are expressed as
vec[0] * x + vec[1] * y + vec[2] * z + vec[3] = 0
.
- All members of this class are static functions. The class cannot be instantiated.
Definition at line 21 of file SimdGeometry.h.
Calculates the dot product between a plane and a four-dimensional vector.
- Parameters
-
[in] | plane | The plane. |
[in] | vec | A four-dimensional vector. |
- Returns
- Stores the dot product in each lane.
Calculates the dot product between a plane and a four-dimensional vector. The calculation treats vec[3]
as 1
.
- Parameters
-
[in] | plane | The plane. |
[in] | vec | A four-dimensional vector. (The w element is treated as 1 .) |
- Returns
- Stores the dot product in each lane.
Calculates the dot product between a plane and a four-dimensional vector. The calculation treats vec[3]
as 0
.
- Parameters
-
[in] | plane | The plane. |
[in] | vec | A three-dimensional vector. (The w element is treated as 0 .) |
- Returns
- Stores the dot product in each lane.
Creates a plane that passes through three points.
- Parameters
-
[in] | point0 | A point on the plane. |
[in] | point1 | A point on the plane. |
[in] | point2 | A point on the plane. |
- Returns
- A plane.
Creates a plane from a point on the plane and a normal vector.
- Parameters
-
[in] | point | A point on the plane. |
[in] | normal | A normal vector. |
- Returns
- A plane.
Returns a plane with its normal vector (plane[0], plane[1], plane[2]) normalized.
- Parameters
-
- Returns
- The plane after its normal vector has been normalized.
Returns a plane with its normal vector (plane[0], plane[1], plane[2]) normalized with relatively low precision.
- Parameters
-
- Returns
- The plane after its normal vector has been normalized.
Transforms a plane using a matrix.
- Parameters
-
[in] | plane | The plane. |
[in] | m | The matrix. |
- Returns
- The transformed plane.
The documentation for this class was generated from the following files: