artisynth.core.mfreemodels
Class CubaturePoint3d

java.lang.Object
  extended by maspack.matrix.VectorBase
      extended by maspack.matrix.Vector3d
          extended by maspack.matrix.Point3d
              extended by artisynth.core.mfreemodels.CubaturePoint3d
All Implemented Interfaces:
java.io.Serializable, java.lang.Cloneable, Vector, Clonable

public class CubaturePoint3d
extends Point3d

See Also:
Serialized Form

Field Summary
 double w
           
 
Fields inherited from class maspack.matrix.Point3d
NEGATIVE_INFINITY, POSITIVE_INFINITY, ZERO
 
Fields inherited from class maspack.matrix.Vector3d
NEG_X_UNIT, NEG_Y_UNIT, NEG_Z_UNIT, x, X_UNIT, y, Y_UNIT, z, Z_UNIT
 
Constructor Summary
CubaturePoint3d()
           
CubaturePoint3d(double x, double y, double z, double w)
           
CubaturePoint3d(Point3d pos, double w)
           
 
Method Summary
 double getWeight()
           
 void inverseTransform(AffineTransform3dBase X)
          Applies an inverse affine transformation to this point, in place.
 void inverseTransform(AffineTransform3dBase X, Vector3d p1)
          Applies an inverse affine transformation to the point p1, and places the result in this vector.
 void scale(double s)
          Scales the elements of this vector by s.
 void scale(double sx, double sy, double sz)
          Scales the elements of this vector by the values in the given direction.
 void setWeight(double w)
           
 void transform(AffineTransform3dBase X)
          Applies an affine transformation to this point, in place.
 void transform(AffineTransform3dBase X, Vector3d p1)
          Applies an affine transformation to the point p1, and places the result in this point.
 
Methods inherited from class maspack.matrix.Vector3d
absolute, absolute, add, add, add, angle, angleWeightedCross, angleWeightedCrossAdd, clone, combine, cross, cross, crossAdd, distance, distanceSquared, dot, epsilonEquals, equals, get, get, get, get, get, greater, greaterEquals, hermiteInterpolate, hermiteVelocity, infinityNorm, interpolate, interpolate, inverseTransform, inverseTransform, main, max, maxAbsIndex, maxElement, min, minAbsIndex, minElement, mul, mulAdd, mulTranspose, mulTransposeAdd, negate, negate, norm, normalize, normalize, normSquared, oneNorm, perpendicular, scale, scaledAdd, scaledAdd, scan, set, set, set, set, set, set, setFromHomogeneous, setRandom, setRandom, setRandom, setZero, size, sort, sort, sortAbsolute, sub, sub, transform, transform, triangleArea, updateBounds, write
 
Methods inherited from class maspack.matrix.VectorBase
containsNaN, copy, copyAndAdd, copyAndNegate, copyAndScale, copyAndSub, copyAndSubLeft, dot, epsilonEquals, equals, get, getDefaultFormat, hasNaN, isColumnVectorStringsVertical, isFixedSize, isRowVector, set, set, setColumnVectorStringsVertical, setDefaultFormat, setRowVector, setSize, toString, toString, toString, write
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

w

public double w
Constructor Detail

CubaturePoint3d

public CubaturePoint3d()

CubaturePoint3d

public CubaturePoint3d(double x,
                       double y,
                       double z,
                       double w)

CubaturePoint3d

public CubaturePoint3d(Point3d pos,
                       double w)
Method Detail

setWeight

public void setWeight(double w)

getWeight

public double getWeight()

transform

public void transform(AffineTransform3dBase X)
Description copied from class: Point3d
Applies an affine transformation to this point, in place.

Overrides:
transform in class Point3d
Parameters:
X - affine transformation

transform

public void transform(AffineTransform3dBase X,
                      Vector3d p1)
Applies an affine transformation to the point p1, and places the result in this point.

Overrides:
transform in class Point3d
Parameters:
X - affine transformation
p1 - point to be transformed

inverseTransform

public void inverseTransform(AffineTransform3dBase X)
Applies an inverse affine transformation to this point, in place.

Overrides:
inverseTransform in class Point3d
Parameters:
X - affine transformation

inverseTransform

public void inverseTransform(AffineTransform3dBase X,
                             Vector3d p1)
Applies an inverse affine transformation to the point p1, and places the result in this vector.

Overrides:
inverseTransform in class Point3d
Parameters:
X - affine transformation
p1 - point to be transformed

scale

public void scale(double s)
Scales the elements of this vector by s.

Overrides:
scale in class Vector3d
Parameters:
s - scaling factor

scale

public void scale(double sx,
                  double sy,
                  double sz)
Scales the elements of this vector by the values in the given direction.

Overrides:
scale in class Vector3d
Parameters:
sx - scaling factor in the x direction
sy - scaling factor in the y direction
sz - scaling factor in the z direction