Navigation
API > API/Runtime > API/Runtime/GeometryCore
Inheritance Hierarchy
- TQuadricError
- TVolPresQuadricError
- TAttrBasedQuadricError
References
| Module | GeometryCore |
| Header | /Engine/Source/Runtime/GeometryCore/Public/QuadricError.h |
| Include | #include "QuadricError.h" |
Syntax
template<typename RealType>
struct TQuadricError
Remarks
QuadricError represents a quadratic function that evaluates distance to plane. Stores minimal 10-coefficient form, following http://mgarland.org/files/papers/qtheory.pdf (symmetric matrix A, vector b, constant c)
Variables
| Type | Name | Description | |
|---|---|---|---|
| RealType | Axx | ||
| RealType | Axy | ||
| RealType | Axz | ||
| RealType | Ayy | ||
| RealType | Ayz | ||
| RealType | Azz | ||
| RealType | bx | ||
| RealType | by | ||
| RealType | bz | ||
| RealType | c |
Constructors
| Type | Name | Description | |
|---|---|---|---|
TQuadricError
(
const TVector< RealType >& Normal, |
Construct TQuadricError a plane with the given normal and a point on plane | ||
TQuadricError
(
const TQuadricError& a, |
Construct TQuadricError that is the sum of two other TQuadricErrors |
Functions
| Type | Name | Description | |
|---|---|---|---|
| void | Add
(
const TQuadricError& b |
||
| void | Add
(
RealType w, |
Add scalar multiple of a TQuadricError to this TQuadricError | |
| void | AddSeamQuadric
(
const TQuadricError& b |
||
| RealType | Evaluate
(
const UE::Math::TVector< RealType >& pt |
Evaluates p*A*p + 2*dot(p,b) + c | |
| bool | InvertSymmetricMatrix
(
const RealType SM, |
||
| TVector< RealType > | MultiplyA
(
const UE::Math::TVector< RealType >& pt |
||
| TVector< RealType > | MultiplySymmetricMatrix
(
const RealType SM, |
||
| TVector< RealType > | MultiplySymmetricMatrix
(
const RealType SM, |
||
| bool | OptimalPoint
(
UE::Math::TVector< RealType >& OutResult, |
||
| void | Scale
(
RealType w |
Scale this quadric by the weight 'w' | |
| bool | SolveAxEqualsb
(
UE::Math::TVector< RealType >& OutResult, |
||
| void | Subtract
(
const TQuadricError& b |
||
| void | SubtractSeamQuadric
(
const TQuadricError& b |
||
| TQuadricError | Zero () |
Typedefs
| Name | Description |
|---|---|
| ScalarType |