Uses of Class
org.web3d.util.spatial.Vec3DDouble
Packages that use Vec3DDouble
-
Uses of Vec3DDouble in org.web3d.util.spatial
Methods in org.web3d.util.spatial that return Vec3DDoubleModifier and TypeMethodDescriptionfinal Vec3DDouble
Vec3DDouble.abs()
Abs.ReadonlyVec3DDouble.add
(double a, double b, double c) Adds vector {a,b,c} and returns result as new vector.ReadonlyVec3DDouble.add
(ReadonlyVec3DDouble v) ReadonlyVec3DDouble.add
(Vec3DDouble v) Add vector v and returns result as new vector.final Vec3DDouble
Vec3DDouble.add
(double a, double b, double c) Vec3DDouble.add
(ReadonlyVec3DDouble v) final Vec3DDouble
Vec3DDouble.add
(Vec3DDouble v) final Vec3DDouble
Vec3DDouble.addSelf
(double a, double b, double c) Adds vector {a,b,c} and overrides coordinates with result.final Vec3DDouble
Vec3DDouble.addSelf
(ReadonlyVec3DDouble v) final Vec3DDouble
Vec3DDouble.addSelf
(Vec3DDouble v) Adds vector v and overrides coordinates with result.final Vec3DDouble
Vec3DDouble.constrain
(toxi.geom.AABB box) Forcefully fits the vector in the given AABB.final Vec3DDouble
Vec3DDouble.constrain
(toxi.geom.Vec3D min, toxi.geom.Vec3D max) Forcefully fits the vector in the given AABB specified by the 2 given points.ReadonlyVec3DDouble.copy()
Copy.Vec3DDouble.copy()
ReadonlyVec3DDouble.cross
(ReadonlyVec3DDouble v) Calculates cross-product with vector v.final Vec3DDouble
Vec3DDouble.cross
(ReadonlyVec3DDouble v) final Vec3DDouble
Vec3DDouble.cross
(Vec3DDouble v) ReadonlyVec3DDouble.crossInto
(ReadonlyVec3DDouble v, Vec3DDouble result) Calculates cross-product with vector v.final Vec3DDouble
Vec3DDouble.crossInto
(ReadonlyVec3DDouble v, Vec3DDouble result) final Vec3DDouble
Vec3DDouble.crossSelf
(Vec3DDouble v) Calculates cross-product with vector v.final Vec3DDouble
Vec3DDouble.floor()
Replaces the vector components with integer values of their current values.final Vec3DDouble
Vec3DDouble.frac()
Replaces the vector components with the fractional part of their current values.static Vec3DDouble
Vec3DDouble.fromXYTheta
(double theta) Creates a new vector from the given angle in the XY plane.static Vec3DDouble
Vec3DDouble.fromXZTheta
(double theta) Creates a new vector from the given angle in the XZ plane.static Vec3DDouble
Vec3DDouble.fromYZTheta
(double theta) Creates a new vector from the given angle in the YZ plane.ReadonlyVec3DDouble.getAbs()
Gets the abs.final Vec3DDouble
Vec3DDouble.getAbs()
ReadonlyVec3DDouble.getCartesian()
Converts the spherical vector back into cartesian coordinates.Vec3DDouble.getCartesian()
ReadonlyVec3DDouble.getConstrained
(toxi.geom.AABB box) Creates a copy of the vector which forcefully fits in the given AABB.final Vec3DDouble
Vec3DDouble.getConstrained
(toxi.geom.AABB box) ReadonlyVec3DDouble.getFloored()
Creates a new vector whose components are the integer value of their current values.final Vec3DDouble
Vec3DDouble.getFloored()
ReadonlyVec3DDouble.getFrac()
Creates a new vector whose components are the fractional part of their current values.final Vec3DDouble
Vec3DDouble.getFrac()
ReadonlyVec3DDouble.getInverted()
Scales vector uniformly by factor -1 ( v = -v ).final Vec3DDouble
Vec3DDouble.getInverted()
ReadonlyVec3DDouble.getLimited
(double lim) Creates a copy of the vector with its magnitude limited to the length given.final Vec3DDouble
Vec3DDouble.getLimited
(double lim) ReadonlyVec3DDouble.getMapped
(toxi.math.ScaleMap map) Produces a new vector with its coordinates passed through the givenScaleMap
.Vec3DDouble.getMapped
(toxi.math.ScaleMap map) ReadonlyVec3DDouble.getNormalized()
Produces the normalized version as a new vector.final Vec3DDouble
Vec3DDouble.getNormalized()
ReadonlyVec3DDouble.getNormalizedTo
(double len) Produces a new vector normalized to the given length.final Vec3DDouble
Vec3DDouble.getNormalizedTo
(double len) ReadonlyVec3DDouble.getReciprocal()
Returns a multiplicative inverse copy of the vector.final Vec3DDouble
Vec3DDouble.getReciprocal()
ReadonlyVec3DDouble.getReflected
(ReadonlyVec3DDouble normal) final Vec3DDouble
Vec3DDouble.getReflected
(ReadonlyVec3DDouble normal) ReadonlyVec3DDouble.getRotatedAroundAxis
(ReadonlyVec3DDouble axis, double theta) Gets the rotated around axis.final Vec3DDouble
Vec3DDouble.getRotatedAroundAxis
(ReadonlyVec3DDouble axis, double theta) ReadonlyVec3DDouble.getRotatedX
(double theta) Creates a new vector rotated by the given angle around the X axis.final Vec3DDouble
Vec3DDouble.getRotatedX
(double theta) ReadonlyVec3DDouble.getRotatedY
(double theta) Creates a new vector rotated by the given angle around the Y axis.final Vec3DDouble
Vec3DDouble.getRotatedY
(double theta) ReadonlyVec3DDouble.getRotatedZ
(double theta) Creates a new vector rotated by the given angle around the Z axis.final Vec3DDouble
Vec3DDouble.getRotatedZ
(double theta) ReadonlyVec3DDouble.getSignum()
Creates a new vector in which all components are replaced with the signum of their original values.final Vec3DDouble
Vec3DDouble.getSignum()
ReadonlyVec3DDouble.getSpherical()
Converts the vector into spherical coordinates.Vec3DDouble.getSpherical()
ReadonlyVec3DDouble.interpolateTo
(ReadonlyVec3DDouble v, double f) Interpolates the vector towards the given target vector, using linear interpolation.ReadonlyVec3DDouble.interpolateTo
(ReadonlyVec3DDouble v, double f, toxi.math.InterpolateStrategy s) Interpolates the vector towards the given target vector, using the givenInterpolateStrategy
.final Vec3DDouble
Vec3DDouble.interpolateTo
(ReadonlyVec3DDouble v, double f) final Vec3DDouble
Vec3DDouble.interpolateTo
(ReadonlyVec3DDouble v, double f, toxi.math.InterpolateStrategy s) final Vec3DDouble
Vec3DDouble.interpolateTo
(Vec3DDouble v, double f) final Vec3DDouble
Vec3DDouble.interpolateTo
(Vec3DDouble v, double f, toxi.math.InterpolateStrategy s) final Vec3DDouble
Vec3DDouble.interpolateToSelf
(ReadonlyVec3DDouble v, double f) Interpolates the vector towards the given target vector, using linear interpolation.final Vec3DDouble
Vec3DDouble.interpolateToSelf
(ReadonlyVec3DDouble v, double f, toxi.math.InterpolateStrategy s) Interpolates the vector towards the given target vector, using the givenInterpolateStrategy
.final Vec3DDouble
Vec3DDouble.invert()
Scales vector uniformly by factor -1 ( v = -v ), overrides coordinates with result.final Vec3DDouble
Vec3DDouble.jitter
(double j) Add random jitter to the vector in the range -j ...final Vec3DDouble
Vec3DDouble.jitter
(double jx, double jy, double jz) Adds random jitter to the vector in the range -j ...final Vec3DDouble
final Vec3DDouble
final Vec3DDouble
Vec3DDouble.jitter
(Random rnd, Vec3DDouble jitterVec) final Vec3DDouble
Vec3DDouble.jitter
(Vec3DDouble jitterVec) Adds random jitter to the vector in the range defined by the given vector components and using the defaultRandom
generator ofMathUtils
.final Vec3DDouble
Vec3DDouble.limit
(double lim) Limits the vector's magnitude to the length given.static Vec3DDouble
Vec3DDouble.max
(ReadonlyVec3DDouble a, ReadonlyVec3DDouble b) Constructs a new vector consisting of the largest components of both vectors.final Vec3DDouble
Vec3DDouble.maxSelf
(ReadonlyVec3DDouble b) Max self.static Vec3DDouble
Vec3DDouble.min
(ReadonlyVec3DDouble a, ReadonlyVec3DDouble b) Constructs a new vector consisting of the smallest components of both vectors.final Vec3DDouble
Vec3DDouble.minSelf
(ReadonlyVec3DDouble b) Min self.final Vec3DDouble
Vec3DDouble.modSelf
(double base) Applies a uniform modulo operation to the vector, using the same base for all components.final Vec3DDouble
Vec3DDouble.modSelf
(double bx, double by, double bz) Calculates modulo operation for each vector component separately.final Vec3DDouble
Vec3DDouble.normalize()
Normalizes the vector so that its magnitude = 1.final Vec3DDouble
Vec3DDouble.normalizeTo
(double len) Normalizes the vector to the given length.static Vec3DDouble
Vec3DDouble.randomVector()
Static factory method.static Vec3DDouble
Vec3DDouble.randomVector
(Random rnd) Static factory method.final Vec3DDouble
Vec3DDouble.reciprocal()
Replaces the vector components with their multiplicative inverse.final Vec3DDouble
Vec3DDouble.reflect
(ReadonlyVec3DDouble normal) final Vec3DDouble
Vec3DDouble.rotateAroundAxis
(ReadonlyVec3DDouble axis, double theta) Rotates the vector around the giving axis.final Vec3DDouble
Vec3DDouble.rotateX
(double theta) Rotates the vector by the given angle around the X axis.final Vec3DDouble
Vec3DDouble.rotateY
(double theta) Rotates the vector by the given angle around the Y axis.final Vec3DDouble
Vec3DDouble.rotateZ
(double theta) Rotates the vector by the given angle around the Z axis.ReadonlyVec3DDouble.scale
(double s) Scales vector uniformly and returns result as new vector.ReadonlyVec3DDouble.scale
(double a, double b, double c) Scales vector non-uniformly and returns result as new vector.ReadonlyVec3DDouble.scale
(ReadonlyVec3DDouble s) Scales vector non-uniformly by vector v and returns result as new vector.Vec3DDouble.scale
(double s) Vec3DDouble.scale
(double a, double b, double c) Vec3DDouble.scale
(ReadonlyVec3DDouble s) Vec3DDouble.scale
(Vec3DDouble s) Vec3DDouble.scaleSelf
(double s) Scales vector uniformly and overrides coordinates with result.Vec3DDouble.scaleSelf
(double a, double b, double c) Scales vector non-uniformly by vector {a,b,c} and overrides coordinates with result.Vec3DDouble.scaleSelf
(ReadonlyVec3DDouble s) Vec3DDouble.scaleSelf
(Vec3DDouble s) Scales vector non-uniformly by vector v and overrides coordinates with result.Vec3DDouble.set
(double x, double y, double z) Overrides coordinates with the given values.Vec3DDouble.set
(ReadonlyVec3DDouble v) Vec3DDouble.set
(Vec3DDouble v) Overrides coordinates with the ones of the given vector.final Vec3DDouble
Vec3DDouble.setComponent
(int id, double val) final Vec3DDouble
Vec3DDouble.setComponent
(Vec3DDouble.Axis id, double val) Vec3DDouble.setX
(double x) Vec3DDouble.setXY
(toxi.geom.Vec2D v) Overrides XY coordinates with the ones of the given 2D vector.Vec3DDouble.setY
(double y) Vec3DDouble.setZ
(double z) Vec3DDouble.shuffle
(int iterations) Vec3DDouble.signum()
Replaces all vector components with the signum of their original values.final Vec3DDouble
Vec3DDouble.snapToAxis()
Rounds the vector to the closest major axis.ReadonlyVec3DDouble.sub
(double a, double b, double c) Subtracts vector {a,b,c} and returns result as new vector.ReadonlyVec3DDouble.sub
(ReadonlyVec3DDouble v) Subtracts vector v and returns result as new vector.final Vec3DDouble
Vec3DDouble.sub
(double a, double b, double c) final Vec3DDouble
Vec3DDouble.sub
(ReadonlyVec3DDouble v) final Vec3DDouble
Vec3DDouble.sub
(Vec3DDouble v) final Vec3DDouble
Vec3DDouble.subSelf
(double a, double b, double c) Subtracts vector {a,b,c} and overrides coordinates with result.final Vec3DDouble
Vec3DDouble.subSelf
(ReadonlyVec3DDouble v) final Vec3DDouble
Vec3DDouble.subSelf
(Vec3DDouble v) Subtracts vector v and overrides coordinates with result.final Vec3DDouble
Vec3DDouble.toCartesian()
final Vec3DDouble
Vec3DDouble.toSpherical()
Methods in org.web3d.util.spatial with parameters of type Vec3DDoubleModifier and TypeMethodDescriptionReadonlyVec3DDouble.add
(Vec3DDouble v) Add vector v and returns result as new vector.final Vec3DDouble
Vec3DDouble.add
(Vec3DDouble v) final Vec3DDouble
Vec3DDouble.addSelf
(Vec3DDouble v) Adds vector v and overrides coordinates with result.final Vec3DDouble
Vec3DDouble.cross
(Vec3DDouble v) ReadonlyVec3DDouble.crossInto
(ReadonlyVec3DDouble v, Vec3DDouble result) Calculates cross-product with vector v.final Vec3DDouble
Vec3DDouble.crossInto
(ReadonlyVec3DDouble v, Vec3DDouble result) final Vec3DDouble
Vec3DDouble.crossSelf
(Vec3DDouble v) Calculates cross-product with vector v.final double
Vec3DDouble.dot
(Vec3DDouble v) final Vec3DDouble
Vec3DDouble.interpolateTo
(Vec3DDouble v, double f) final Vec3DDouble
Vec3DDouble.interpolateTo
(Vec3DDouble v, double f, toxi.math.InterpolateStrategy s) boolean
GridTrianglePartition.intersectsTriangle
(Vec3DDouble a, Vec3DDouble b, Vec3DDouble c, float[] pos) Does triangle overlap a voxel.boolean
ReadonlyVec3DDouble.isInAABB
(Vec3DDouble boxOrigin, Vec3DDouble boxExtent) Checks if the point is inside the given axis-aligned bounding box.boolean
Vec3DDouble.isInAABB
(Vec3DDouble boxOrigin, Vec3DDouble boxExtent) final Vec3DDouble
Vec3DDouble.jitter
(Random rnd, Vec3DDouble jitterVec) final Vec3DDouble
Vec3DDouble.jitter
(Vec3DDouble jitterVec) Adds random jitter to the vector in the range defined by the given vector components and using the defaultRandom
generator ofMathUtils
.Vec3DDouble.scale
(Vec3DDouble s) Vec3DDouble.scaleSelf
(Vec3DDouble s) Scales vector non-uniformly by vector v and overrides coordinates with result.Vec3DDouble.set
(Vec3DDouble v) Overrides coordinates with the ones of the given vector.final Vec3DDouble
Vec3DDouble.sub
(Vec3DDouble v) final Vec3DDouble
Vec3DDouble.subSelf
(Vec3DDouble v) Subtracts vector v and overrides coordinates with result.