Uses of Interface
toxi.geom.ReadonlyVec3D
Package
Description
-
Uses of ReadonlyVec3D in toxi.audio
Modifier and TypeClassDescriptionclass
A wrapper forAudioBuffer
s and similar to the built in JOAL net.java.games.sound3d.Source, though less restrictive.class
The concept of a SoundListener refers directly to the user's instance in the virtual (audio) world. -
Uses of ReadonlyVec3D in toxi.geom
Modifier and TypeClassDescriptionclass
Axis-aligned bounding box with basic intersection features for Ray, AABB and Sphere classes.class
A geometric definition of a cone (and cylinder as a special case) with support for mesh creation/representation.class
Class to describe and work with infinite generic 3D planes.class
Implements a spatial subdivision tree to work efficiently with large numbers of 3D particles.class
A simple 3D ray datatypeclass
class
Comprehensive 3D vector class with additional basic intersection and collision detection features.Modifier and TypeFieldDescriptionfinal ReadonlyVec3D
Axis3D.dir
IsectData3D.dir
static final ReadonlyVec3D
Vec3D.MAX_VALUE
Defines vector with all coords set to Float.MAX_VALUE.static final ReadonlyVec3D
Vec3D.MIN_VALUE
Defines vector with all coords set to Float.MIN_VALUE.static final ReadonlyVec3D
Vec3D.NEG_MAX_VALUE
IsectData3D.normal
final ReadonlyVec3D
Axis3D.origin
Origin3D.origin
IsectData3D.pos
static final ReadonlyVec3D
Vec3D.X_AXIS
Defines positive X axis.Origin3D.xAxis
static final ReadonlyVec3D
Vec3D.Y_AXIS
Defines positive Y axis.Origin3D.yAxis
static final ReadonlyVec3D
Vec3D.Z_AXIS
Defines positive Z axis.Origin3D.zAxis
static final ReadonlyVec3D
Vec3D.ZERO
Defines the zero vector.Modifier and TypeMethodDescriptionfinal ReadonlyVec3D
Vec3D.clear()
Sets all vector components to 0.Plane.getIntersectionWithRay
(Ray3D r) Calculates the intersection point between plane and ray (line).PointOctree.getOffset()
Reflector3D.getReflectedRayPointAtDistance
(float dist) Returns the point on the reflected ray at given distance from the intersection pointSphereIntersectorReflector.getReflectedRayPointAtDistance
(float dist) Vec3D.Axis.getVector()
Vec3D.immutable()
Modifier and TypeMethodDescriptionLineStrip3D.add
(ReadonlyVec3D p) ReadonlyVec3D.add
(ReadonlyVec3D v) Spline3D.add
(ReadonlyVec3D p) Adds the given point to the list of control points.Vec3D.add
(ReadonlyVec3D v) final Vec3D
Vec3D.addSelf
(ReadonlyVec3D v) final Vec4D
Vec4D.addXYZ
(ReadonlyVec3D v) final Vec4D
Vec4D.addXYZSelf
(ReadonlyVec3D v) float
ReadonlyVec3D.angleBetween
(ReadonlyVec3D v) Computes the angle between this vector and vector V.float
ReadonlyVec3D.angleBetween
(ReadonlyVec3D v, boolean forceNormalize) Computes the angle between this vector and vector V.final float
Vec3D.angleBetween
(ReadonlyVec3D v) final float
Vec3D.angleBetween
(ReadonlyVec3D v, boolean forceNormalize) Matrix4x4.applyTo
(ReadonlyVec3D v) Creates a copy of the given vector, transformed by this matrix.PointCloud3D.center
(ReadonlyVec3D origin) Updates all points in the cloud so that their new centroid is at the given point.Plane.classifyPoint
(ReadonlyVec3D p, float tolerance) Classifies the relative position of the given point to the plane using the given tolerance.Line3D.closestPointTo
(ReadonlyVec3D p) Computes the closest point on this line to the given one.int
ReadonlyVec3D.compareTo
(ReadonlyVec3D v) Compares the length of the vector with another one.int
Vec3D.compareTo
(ReadonlyVec3D v) boolean
AABB.containsPoint
(ReadonlyVec3D p) abstract boolean
AxisAlignedCylinder.containsPoint
(ReadonlyVec3D p) Checks if the given point is inside the cylinder.boolean
Plane.containsPoint
(ReadonlyVec3D p) boolean
PointOctree.containsPoint
(ReadonlyVec3D p) boolean
Shape3D.containsPoint
(ReadonlyVec3D p) Checks if the point is within the given shape/volume.boolean
Sphere.containsPoint
(ReadonlyVec3D p) boolean
Triangle3D.containsPoint
(ReadonlyVec3D p) Checks if point vector is inside the triangle created by the points a, b and c.boolean
XAxisCylinder.containsPoint
(ReadonlyVec3D p) boolean
YAxisCylinder.containsPoint
(ReadonlyVec3D p) boolean
ZAxisCylinder.containsPoint
(ReadonlyVec3D p) static Quaternion
Quaternion.createFromAxisAngle
(ReadonlyVec3D axis, float angle) Creates a Quaternion from a axis and a angle.ReadonlyVec3D.cross
(ReadonlyVec3D v) Calculates cross-product with vector v.final Vec3D
Vec3D.cross
(ReadonlyVec3D v) ReadonlyVec3D.crossInto
(ReadonlyVec3D v, Vec3D result) Calculates cross-product with vector v.final Vec3D
Vec3D.crossInto
(ReadonlyVec3D v, Vec3D result) float
ReadonlyVec3D.distanceTo
(ReadonlyVec3D v) Calculates distance to another vector.final float
Vec3D.distanceTo
(ReadonlyVec3D v) float
ReadonlyVec3D.distanceToSquared
(ReadonlyVec3D v) Calculates the squared distance to another vector.final float
Vec3D.distanceToSquared
(ReadonlyVec3D v) float
ReadonlyVec3D.dot
(ReadonlyVec3D v) Computes the scalar product (dot product) with the given vector.final float
Vec3D.dot
(ReadonlyVec3D v) boolean
Vec3D.equals
(ReadonlyVec3D v) Returns true if the Object v is of type ReadonlyVec3D and all of the data members of v are equal to the corresponding data members in this vector.boolean
ReadonlyVec3D.equalsWithTolerance
(ReadonlyVec3D v, float tolerance) Compares this vector with the one given.boolean
Vec3D.equalsWithTolerance
(ReadonlyVec3D v, float tolerance) Triangle2D.fromBarycentric
(ReadonlyVec3D p) Triangle3D.fromBarycentric
(ReadonlyVec3D p) static Quaternion
Quaternion.getAlignmentQuat
(ReadonlyVec3D dir, ReadonlyVec3D forward) Constructs a quaternion that rotates the vector given by the "forward" param into the direction given by the "dir" param.Triangle3D.getClosestPointTo
(ReadonlyVec3D p) Finds and returns the closest point on any of the triangle edges to the point given.PointOctree.getLeafForPoint
(ReadonlyVec3D p) Finds the leaf node which spatially relates to the given pointAABB.getNormalForPoint
(ReadonlyVec3D p) ReadonlyVec3D.getReflected
(ReadonlyVec3D normal) final Vec3D
Vec3D.getReflected
(ReadonlyVec3D normal) Matrix4x4.getRotatedAroundAxis
(ReadonlyVec3D axis, double theta) ReadonlyVec3D.getRotatedAroundAxis
(ReadonlyVec3D axis, float theta) Gets the rotated around axis.ReadonlyVec4D.getRotatedAroundAxis
(ReadonlyVec3D axis, float theta) Gets the rotated around axis.final Vec3D
Vec3D.getRotatedAroundAxis
(ReadonlyVec3D axis, float theta) Vec4D.getRotatedAroundAxis
(ReadonlyVec3D axis, float theta) AABB.growToContainPoint
(ReadonlyVec3D p) Adjusts the box size and position such that it includes the given point.ReadonlyVec3D.interpolateTo
(ReadonlyVec3D v, float f) Interpolates the vector towards the given target vector, using linear interpolation.ReadonlyVec3D.interpolateTo
(ReadonlyVec3D v, float f, InterpolateStrategy s) Interpolates the vector towards the given target vector, using the givenInterpolateStrategy
.final Vec3D
Vec3D.interpolateTo
(ReadonlyVec3D v, float f) final Vec3D
Vec3D.interpolateTo
(ReadonlyVec3D v, float f, InterpolateStrategy s) final Vec3D
Vec3D.interpolateToSelf
(ReadonlyVec3D v, float f) Interpolates the vector towards the given target vector, using linear interpolation.final Vec3D
Vec3D.interpolateToSelf
(ReadonlyVec3D v, float f, InterpolateStrategy s) Interpolates the vector towards the given target vector, using the givenInterpolateStrategy
.Matrix4x4.lookAt
(ReadonlyVec3D eye, ReadonlyVec3D target, ReadonlyVec3D up) static final Vec3D
Vec3D.max
(ReadonlyVec3D a, ReadonlyVec3D b) Constructs a new vector consisting of the largest components of both vectors.final Vec3D
Vec3D.maxSelf
(ReadonlyVec3D b) Max self.static final Vec3D
Vec3D.min
(ReadonlyVec3D a, ReadonlyVec3D b) Constructs a new vector consisting of the smallest components of both vectors.final Vec3D
Vec3D.minSelf
(ReadonlyVec3D b) Min self.final Vec3D
Vec3D.reflect
(ReadonlyVec3D normal) boolean
PointOctree.remove
(ReadonlyVec3D p) Removes a point from the tree and (optionally) tries to release memory by reducing now empty sub-branches.boolean
PointCloud3D.removePoint
(ReadonlyVec3D p) Removes the point from the cloud, but doesn't update the bounds automatically.Matrix4x4.rotateAroundAxis
(ReadonlyVec3D axis, double theta) Applies rotation about arbitrary axis to matrixfinal Vec3D
Vec3D.rotateAroundAxis
(ReadonlyVec3D axis, float theta) Rotates the vector around the giving axis.final Vec4D
Vec4D.rotateAroundAxis
(ReadonlyVec3D axis, float theta) Rotates the vector around the giving axis.Matrix4x4.scale
(ReadonlyVec3D scale) ReadonlyVec3D.scale
(ReadonlyVec3D s) Scales vector non-uniformly by vector v and returns result as new vector.Vec3D.scale
(ReadonlyVec3D s) Matrix4x4.scaleSelf
(ReadonlyVec3D scale) Vec3D.scaleSelf
(ReadonlyVec3D s) AABB.set
(ReadonlyVec3D v) Updates the position of the box in space and callsAABB.updateBounds()
immediatelyfinal GVector
GVector.set
(ReadonlyVec3D tuple) Sets the value of this vector to the values in tupleLine3D.set
(ReadonlyVec3D a, ReadonlyVec3D b) Vec3D.set
(ReadonlyVec3D v) Ray3D.setDirection
(ReadonlyVec3D d) Uses a normalized copy of the given vector as the ray direction.AABB.setExtent
(ReadonlyVec3D extent) Updates the size of the box and callsAABB.updateBounds()
immediatelyRay3D.setNormalizedDirection
(ReadonlyVec3D d) Ellipse.setRadii
(ReadonlyVec3D r) Sets the radii of the ellipse to the values given by the vector.final Vec4D
Vec4D.setXYZ
(ReadonlyVec3D v) ReadonlyVec3D.sub
(ReadonlyVec3D v) Subtracts vector v and returns result as new vector.final Vec3D
Vec3D.sub
(ReadonlyVec3D v) final Vec3D
Vec3D.subSelf
(ReadonlyVec3D v) final Vec4D
Vec4D.subXYZ
(ReadonlyVec3D v) final Vec4D
Vec4D.subXYZSelf
(ReadonlyVec3D v) Sphere.tangentPlaneNormalAt
(ReadonlyVec3D q) Calculates the normal vector on the sphere in the direction of the current point.Triangle3D.toBarycentric
(ReadonlyVec3D p) Matrix4x4.translate
(ReadonlyVec3D trans) Matrix4x4.translateSelf
(ReadonlyVec3D trans) ModifierConstructorDescriptionAABB
(ReadonlyVec3D pos, float extent) Creates a new instance from centre point and uniform extent in all directions.AABB
(ReadonlyVec3D pos, ReadonlyVec3D extent) Creates a new instance from centre point and extentAxis3D
(ReadonlyVec3D dir) Creates a new Axis3D from the world origin in the given direction.Axis3D
(ReadonlyVec3D o, ReadonlyVec3D dir) Creates a new Axis3D from the given origin and direction.Cone
(ReadonlyVec3D pos, ReadonlyVec3D dir, float rNorth, float rSouth, float len) Constructs a new cone instance.Constructs a new GVector and copies the initial values from the specified tuple.Line3D
(ReadonlyVec3D a, ReadonlyVec3D b) Plane
(ReadonlyVec3D origin, ReadonlyVec3D norm) Quaternion
(float w, ReadonlyVec3D v) Ray3D
(float x, float y, float z, ReadonlyVec3D d) Ray3D
(ReadonlyVec3D o, ReadonlyVec3D d) Sphere
(ReadonlyVec3D v, float r) Creates a new vector with the coordinates of the given vector.Vec4D
(ReadonlyVec3D v, float w) XAxisCylinder
(ReadonlyVec3D pos, float radius, float length) YAxisCylinder
(ReadonlyVec3D pos, float radius, float length) ZAxisCylinder
(ReadonlyVec3D pos, float radius, float length) -
Uses of ReadonlyVec3D in toxi.geom.mesh
Modifier and TypeMethodDescriptionMesh3D.center
(ReadonlyVec3D origin) Centers the mesh around the given pivot point (the centroid of its AABB).TriangleMesh.center
(ReadonlyVec3D origin) WETriangleMesh.center
(ReadonlyVec3D origin) Mesh3D.getClosestVertexToPoint
(ReadonlyVec3D p) TriangleMesh.getClosestVertexToPoint
(ReadonlyVec3D p) WETriangleMesh.getClosestVertexToPoint
(ReadonlyVec3D p) WEVertex.getNeighborInDirection
(ReadonlyVec3D dir, float tolerance) TriangleMesh.pointTowards
(ReadonlyVec3D dir) Rotates the mesh in such a way so that its "forward" axis is aligned with the given direction.TriangleMesh.pointTowards
(ReadonlyVec3D dir, ReadonlyVec3D forward) Rotates the mesh in such a way so that its "forward" axis is aligned with the given direction.WETriangleMesh.pointTowards
(ReadonlyVec3D dir) Rotates the mesh in such a way so that its "forward" axis is aligned with the given direction.WETriangleMesh.pointTowards
(ReadonlyVec3D dir, ReadonlyVec3D forward) Rotates the mesh in such a way so that its "forward" axis is aligned with the given direction.void
WETriangleMesh.splitEdge
(ReadonlyVec3D a, ReadonlyVec3D b, SubdivisionStrategy subDiv) -
Uses of ReadonlyVec3D in toxi.geom.nurbs
-
Uses of ReadonlyVec3D in toxi.newmesh
-
Uses of ReadonlyVec3D in toxi.physics3d
Modifier and TypeClassDescriptionclass
An individual 3D particle for use by the VerletPhysics and VerletSpring classes.ModifierConstructorDescriptionCreates particle at the position of the passed in vectorVerletParticle3D
(ReadonlyVec3D v, float w) Creates particle with weight w at the position of the passed in vector -
Uses of ReadonlyVec3D in toxi.processing
Modifier and TypeMethodDescriptionfinal void
ToxiclibsSupport.line
(ReadonlyVec3D a, ReadonlyVec3D b) final void
ToxiclibsSupport.origin
(ReadonlyVec3D o, float len) Draws the major axes from the given point.final void
ToxiclibsSupport.point
(ReadonlyVec3D v) final void
ToxiclibsSupport.rotate
(float theta, ReadonlyVec3D v) final void
ToxiclibsSupport.scale
(ReadonlyVec3D v) final void
ToxiclibsSupport.translate
(ReadonlyVec3D v) final void
ToxiclibsSupport.vertex
(ReadonlyVec3D v) -
Uses of ReadonlyVec3D in toxi.sim.dla
-
Uses of ReadonlyVec3D in toxi.sim.fluids
Modifier and TypeMethodDescriptionvoid
FluidSolver3D.setAt
(int x, int y, int z, float dens, ReadonlyVec3D vel)