Uses of Class
toxi.geom.Vec4D
-
Uses of Vec4D in toxi.geom
Modifier and TypeMethodDescriptionVec4D.abs()
ReadonlyVec4D.add
(ReadonlyVec4D v) Add vector v and returns result as new vector.final Vec4D
Vec4D.add
(ReadonlyVec4D v) ReadonlyVec4D.addScaled
(ReadonlyVec4D t, float s) final Vec4D
Vec4D.addScaled
(ReadonlyVec4D t, float s) final Vec4D
Vec4D.addScaledSelf
(ReadonlyVec4D t, float s) final Vec4D
Vec4D.addSelf
(ReadonlyVec4D v) ReadonlyVec4D.addXYZ
(float a, float b, float c) Adds vector {a,b,c} and returns result as new vector.final Vec4D
Vec4D.addXYZ
(float xx, float yy, float zz) final Vec4D
Vec4D.addXYZ
(ReadonlyVec3D v) final Vec4D
Vec4D.addXYZSelf
(float xx, float yy, float zz) final Vec4D
Vec4D.addXYZSelf
(ReadonlyVec3D v) ReadonlyVec4D.copy()
Copy.final Vec4D
Vec4D.copy()
ReadonlyVec4D.getAbs()
Gets the abs.Vec4D.getAbs()
ReadonlyVec4D.getInvertedXYZ()
Scales vector uniformly by factor -1 ( v = -v ).final Vec4D
Vec4D.getInvertedXYZ()
Produces a new vector with all of its coordinates passed through the givenScaleMap
.ReadonlyVec4D.getMappedXYZ
(ScaleMap map) Produces a new vector with only its XYZ coordinates passed through the givenScaleMap
.Vec4D.getMappedXYZ
(ScaleMap map) ReadonlyVec4D.getNormalized()
Produces the normalized version as a new vector.Vec4D.getNormalized()
ReadonlyVec4D.getNormalizedTo
(float len) Produces a new vector normalized to the given length.Vec4D.getNormalizedTo
(float len) ReadonlyVec4D.getRotatedAroundAxis
(ReadonlyVec3D axis, float theta) Gets the rotated around axis.Vec4D.getRotatedAroundAxis
(ReadonlyVec3D axis, float theta) ReadonlyVec4D.getRotatedX
(float theta) Creates a new vector rotated by the given angle around the X axis.Vec4D.getRotatedX
(float theta) ReadonlyVec4D.getRotatedY
(float theta) Creates a new vector rotated by the given angle around the Y axis.Vec4D.getRotatedY
(float theta) ReadonlyVec4D.getRotatedZ
(float theta) Creates a new vector rotated by the given angle around the Z axis.Vec4D.getRotatedZ
(float theta) ReadonlyVec4D.getRoundedXYZTo
(float prec) Creates a new vector with its XYZ coordinates rounded to the given precision (grid alignment).Vec4D.getRoundedXYZTo
(float prec) ReadonlyVec4D.getUnweighted()
Vec4D.getUnweighted()
ReadonlyVec4D.getWeighted()
Vec4D.getWeighted()
ReadonlyVec4D.interpolateTo
(ReadonlyVec4D v, float f) Interpolates the vector towards the given target vector, using linear interpolation.ReadonlyVec4D.interpolateTo
(ReadonlyVec4D v, float f, InterpolateStrategy s) Interpolates the vector towards the given target vector, using the givenInterpolateStrategy
.final Vec4D
Vec4D.interpolateTo
(ReadonlyVec4D v, float t) final Vec4D
Vec4D.interpolateTo
(ReadonlyVec4D v, float f, InterpolateStrategy s) final Vec4D
Vec4D.interpolateToSelf
(ReadonlyVec4D v, float t) final Vec4D
Vec4D.interpolateToSelf
(ReadonlyVec4D v, float f, InterpolateStrategy s) final Vec4D
Vec4D.invertXYZ()
final Vec4D
Vec4D.normalize()
Normalizes the vector so that its magnitude = 1.final Vec4D
Vec4D.normalizeTo
(float len) Normalizes the vector to the given length.final Vec4D
Vec4D.rotateAroundAxis
(ReadonlyVec3D axis, float theta) Rotates the vector around the giving axis.final Vec4D
Vec4D.rotateX
(float theta) Rotates the vector by the given angle around the X axis.final Vec4D
Vec4D.rotateY
(float theta) Rotates the vector by the given angle around the Y axis.final Vec4D
Vec4D.rotateZ
(float theta) Rotates the vector by the given angle around the Z axis.Vec4D.roundXYZTo
(float prec) ReadonlyVec4D.scale
(float s) Scales vector uniformly and returns result as new vector.ReadonlyVec4D.scale
(float x, float y, float z, float w) Scales vector non-uniformly and returns result as new vector.ReadonlyVec4D.scale
(ReadonlyVec4D s) Scales vector non-uniformly by vector v and returns result as new vector.final Vec4D
Vec4D.scale
(float s) final Vec4D
Vec4D.scale
(float xx, float yy, float zz, float ww) Vec4D.scale
(ReadonlyVec4D s) final Vec4D
Vec4D.scaleSelf
(float s) Vec4D.scaleSelf
(ReadonlyVec4D s) final Vec4D
Vec4D.scaleXYZSelf
(float s) final Vec4D
Vec4D.scaleXYZSelf
(float xscale, float yscale, float zscale) Vec4D.set
(float x, float y, float z, float w) Overrides coordinates with the given values.final Vec4D
Vec4D.set
(ReadonlyVec4D v) Vec4D.setW
(float w) Vec4D.setX
(float x) final Vec4D
Vec4D.setXYZ
(ReadonlyVec3D v) Vec4D.setY
(float y) Vec4D.setZ
(float z) ReadonlyVec4D.sub
(ReadonlyVec4D v) Subtracts vector v and returns result as new vector.final Vec4D
Vec4D.sub
(ReadonlyVec4D v) final Vec4D
Vec4D.subSelf
(ReadonlyVec4D v) ReadonlyVec4D.subXYZ
(float a, float b, float c) Subtracts vector {a,b,c} and returns result as new vector.final Vec4D
Vec4D.subXYZ
(float xx, float yy, float zz) final Vec4D
Vec4D.subXYZ
(ReadonlyVec3D v) final Vec4D
Vec4D.subXYZSelf
(float xx, float yy, float zz) final Vec4D
Vec4D.subXYZSelf
(ReadonlyVec3D v) ReadonlyVec3D.to4D()
Creates a Vec4D instance of this vector with the w component set to 1.0ReadonlyVec3D.to4D
(float w) Creates a Vec4D instance of this vector with it w component set to the given value.Vec3D.to4D()
Vec3D.to4D
(float w) final Vec4D
Vec4D.translate
(float xx, float yy, float zz) final Vec4D
Vec4D.unweight()
Divides each coordinate bythe weight with and sets the coordinate to the newly calculatd ones.final Vec4D
Vec4D.weight()
Multiplies the weight with each coordinate and sets the coordinate to the newly calculatd ones.Modifier and TypeMethodDescriptionfinal void
Copies the matrix values in the specified column into the vector parameter.final void
Copies the matrix values in the specified row into the vector parameter.final void
Sets the specified column of this matrix4f to the vector provided.final void
Sets the specified row of this matrix4f to the Vector provided.final void
Transform the vector vec using this Transform and place the result back into vec.final void
Transform the vector vec using this Matrix4f and place the result into vecOut. -
Uses of Vec4D in toxi.geom.nurbs
Modifier and TypeMethodDescriptionVec4D[][]
BasicNurbsCurve.curveDerivCpts
(int d, int r1, int r2) Vec4D[][]
NurbsCurve.curveDerivCpts
(int d, int r1, int r2) Computes control points of dth derivative
Piegel, L.ControlNet.get
(int u, int v) Get the ControlPoint at the position u,vVec4D[]
BasicNurbsCurve.getControlPoints()
Vec4D[][]
ControlNet.getControlPoints()
Get all the control pointsVec4D[]
NurbsCurve.getControlPoints()
Get the ControlPoints of this curveVec4D[][][][]
BasicNurbsSurface.surfaceDerivCpts
(int d, int r1, int r2, int s1, int s2) Vec4D[][][][]
NurbsSurface.surfaceDerivCpts
(int d, int r1, int r2, int s1, int s2) Computes control points of dth derivative
Piegel, L.Modifier and TypeMethodDescriptionCurveCreator.addControlPoint
(Vec4D cp) Add a new Controlpoint to the current CurveCreator.void
Set the ControlPoint at the position u,vModifierConstructorDescriptionBasicNurbsCurve
(Vec4D[] cps, float[] uK, int degree) Create a Nurbs Curve from the given Controlpoints, Knots and degree.
[TODO Validate Input, part of it is done by creating the KnotVector]BasicNurbsCurve
(Vec4D[] cps, KnotVector uKnots) Generate a Nurbs from the given Controlpoints and the given Knotvector.
[TODO validate input]ControlNet
(Vec4D[][] cpnet) Create a ControlNet from the given points the two dimensional array must be a Matrix else an IllegalArgumentException is thrown. -
Uses of Vec4D in toxi.processing
Modifier and TypeMethodDescriptionfinal void
final void
Modifier and TypeMethodDescriptionfinal void
ToxiclibsSupport.lineStrip4D
(List<? extends Vec4D> points) Draws a 3D line strip using all points in the given list of 4D vectors.final void
ToxiclibsSupport.lineStrip4D
(List<? extends Vec4D> points, float scale) final void
final void
final void
final void
ToxiclibsSupport.processVertices4D
(Iterator<? extends Vec4D> iterator, int shapeID, boolean closed) final void
ToxiclibsSupport.processVertices4D
(Iterator<? extends Vec4D> iterator, int shapeID, boolean closed, float scale)