Struct QuadricError
Stores quadratic function that evaluates distance to plane, in minimal 10-coefficient form, following http://mgarland.org/files/papers/qtheory.pdf
- symmetric matrix A
- vector b
- constant c
Inherited Members
Namespace: g3
Assembly: cs.temp.dll.dll
Syntax
public struct QuadricError
Constructors
QuadricError(ref QuadricError, ref QuadricError)
Declaration
public QuadricError(ref QuadricError a, ref QuadricError b)
Parameters
Type | Name | Description |
---|---|---|
QuadricError | a | |
QuadricError | b |
QuadricError(ref Vector3d, ref Vector3d)
Declaration
public QuadricError(ref Vector3d n, ref Vector3d p)
Parameters
Type | Name | Description |
---|---|---|
Vector3d | n | |
Vector3d | p |
Fields
Axx
Declaration
public double Axx
Field Value
Type | Description |
---|---|
Double |
Axy
Declaration
public double Axy
Field Value
Type | Description |
---|---|
Double |
Axz
Declaration
public double Axz
Field Value
Type | Description |
---|---|
Double |
Ayy
Declaration
public double Ayy
Field Value
Type | Description |
---|---|
Double |
Ayz
Declaration
public double Ayz
Field Value
Type | Description |
---|---|
Double |
Azz
Declaration
public double Azz
Field Value
Type | Description |
---|---|
Double |
bx
Declaration
public double bx
Field Value
Type | Description |
---|---|
Double |
by
Declaration
public double by
Field Value
Type | Description |
---|---|
Double |
bz
Declaration
public double bz
Field Value
Type | Description |
---|---|
Double |
c
Declaration
public double c
Field Value
Type | Description |
---|---|
Double |
Zero
Declaration
public static readonly QuadricError Zero
Field Value
Type | Description |
---|---|
QuadricError |
Methods
Add(Double, ref QuadricError)
Declaration
public void Add(double w, ref QuadricError b)
Parameters
Type | Name | Description |
---|---|---|
Double | w | |
QuadricError | b |
Evaluate(ref Vector3d)
returns pAp + 2*dot(p,b) + c
Declaration
public double Evaluate(ref Vector3d pt)
Parameters
Type | Name | Description |
---|---|---|
Vector3d | pt |
Returns
Type | Description |
---|---|
Double |
OptimalPoint(ref Vector3d)
Declaration
public bool OptimalPoint(ref Vector3d result)
Parameters
Type | Name | Description |
---|---|---|
Vector3d | result |
Returns
Type | Description |
---|---|
Boolean |