public class CovarianceUtils
extends java.lang.Object
Constructor and Description |
---|
CovarianceUtils() |
Modifier and Type | Method and Description |
---|---|
static void |
addScaledPointCovariance(Matrix3d C,
double s,
Point3d p) |
static double |
addTriangleCovariance(Matrix3d C,
Point3d p0,
Point3d p1,
Point3d p2) |
static double |
computeLineSegmentCovariance(Matrix3d C,
Point3d p0,
Point3d p1) |
static void |
computePointCovariance(Matrix3d C,
Point3d p) |
static void |
transformCovariance(Matrix3d CT,
Matrix3d C,
Point3d cent,
double a,
RigidTransform3d T)
Transforms a covariance matrix into a new coordinate system, given its
associated centroid 'area' (or volume).
|
public static void addScaledPointCovariance(Matrix3d C, double s, Point3d p)
public static double computeLineSegmentCovariance(Matrix3d C, Point3d p0, Point3d p1)
public static double addTriangleCovariance(Matrix3d C, Point3d p0, Point3d p1, Point3d p2)
public static void transformCovariance(Matrix3d CT, Matrix3d C, Point3d cent, double a, RigidTransform3d T)
CT
- returns the transformed covarianceC
- covariance to transformcent
- centroid associated with the covariance (in old coordinates)a
- area (or length or volume) associated with the covarianceT
- transformation from old to new coordinates