artisynth.core.mfreemodels
Class CubaturePoint3d
java.lang.Object
maspack.matrix.VectorBase
maspack.matrix.Vector3d
maspack.matrix.Point3d
artisynth.core.mfreemodels.CubaturePoint3d
- All Implemented Interfaces:
- java.io.Serializable, java.lang.Cloneable, Vector, Clonable
public class CubaturePoint3d
- extends Point3d
- See Also:
- Serialized Form
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 |
w
public double w
CubaturePoint3d
public CubaturePoint3d()
CubaturePoint3d
public CubaturePoint3d(double x,
double y,
double z,
double w)
CubaturePoint3d
public CubaturePoint3d(Point3d pos,
double w)
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 transformationp1
- 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 transformationp1
- 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 directionsy
- scaling factor in the y directionsz
- scaling factor in the z direction