Navigation
API > API/Runtime > API/Runtime/GeometryCore
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)
| Name | TQuadricError |
| Type | struct |
| Header File | /Engine/Source/Runtime/GeometryCore/Public/QuadricError.h |
| Include Path | #include "QuadricError.h" |
Syntax
template<typename RealType>
struct TQuadricError
Derived Classes
Constructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
TQuadricError
(
const TVector< RealType >& Normal, |
Construct TQuadricError a plane with the given normal and a point on plane | QuadricError.h | |
| QuadricError.h | |||
TQuadricError
(
const TQuadricError& a, |
Construct TQuadricError that is the sum of two other TQuadricErrors | QuadricError.h |
Typedefs
| Name | Type | Remarks | Include Path |
|---|---|---|---|
| ScalarType | RealType | QuadricError.h |
Variables
Public
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| Axx | RealType | QuadricError.h | ||
| Axy | RealType | QuadricError.h | ||
| Axz | RealType | QuadricError.h | ||
| Ayy | RealType | QuadricError.h | ||
| Ayz | RealType | QuadricError.h | ||
| Azz | RealType | QuadricError.h | ||
| bx | RealType | QuadricError.h | ||
| by | RealType | QuadricError.h | ||
| bz | RealType | QuadricError.h | ||
| c | RealType | QuadricError.h |
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
void Add
(
const TQuadricError& b |
QuadricError.h | ||
void Add
(
RealType w, |
Add scalar multiple of a TQuadricError to this TQuadricError | QuadricError.h | |
void AddSeamQuadric
(
const TQuadricError& b |
QuadricError.h | ||
RealType Evaluate
(
const UE::Math::TVector< RealType >& pt |
Evaluates p*A*p + 2*dot(p,b) + c | QuadricError.h | |
TVector< RealType > MultiplyA
(
const UE::Math::TVector< RealType >& pt |
QuadricError.h | ||
bool OptimalPoint
(
UE::Math::TVector< RealType >& OutResult, |
QuadricError.h | ||
void Scale
(
RealType w |
Scale this quadric by the weight 'w' | QuadricError.h | |
bool SolveAxEqualsb
(
UE::Math::TVector< RealType >& OutResult, |
QuadricError.h | ||
void Subtract
(
const TQuadricError& b |
QuadricError.h | ||
void SubtractSeamQuadric
(
const TQuadricError& b |
QuadricError.h |
Static
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
static bool InvertSymmetricMatrix
(
const RealType SM, |
QuadricError.h | ||
static TVector< RealType > MultiplySymmetricMatrix
(
const RealType SM, |
QuadricError.h | ||
static TVector< RealType > MultiplySymmetricMatrix
(
const RealType SM, |
QuadricError.h | ||
static TQuadricError Zero() |
QuadricError.h |