Uses of Class
com.JayPi4c.NeuroEvolution.plugins.util.PVector
Packages that use PVector
Package
Description
-
Uses of PVector in com.JayPi4c.NeuroEvolution.plugins.track
Methods in com.JayPi4c.NeuroEvolution.plugins.track that return PVectorModifier and TypeMethodDescriptionTrack.getStart()Returns a PVector containing the position on which the vehicles should start on the given track.Track.getStartVelocity()Returns a PVector which points into the direction the vehicles should drive. -
Uses of PVector in com.JayPi4c.NeuroEvolution.plugins.util
Methods in com.JayPi4c.NeuroEvolution.plugins.util that return PVectorModifier and TypeMethodDescriptionPVector.add(double x, double y) PVector.add(double x, double y, double z) ( begin auto-generated from PVector_add.xml ) Adds x, y, and z components to a vector, adds one vector to another, or adds two independent vectors together.static PVectorAdd two vectorsstatic PVectorAdd two vectors into a target vectorPVector.copy()( begin auto-generated from PVector_copy.xml ) Gets a copy of the vector, returns a PVector object.( begin auto-generated from PVector_cross.xml ) Calculates and returns a vector composed of the cross product between two vectors.static PVectorPVector.div(double n) ( begin auto-generated from PVector_div.xml ) Divides a vector by a scalar or divides one vector by another.static PVectorDivide a vector by a scalar and return the result in a new vector.static PVectorDivide a vector by a scalar and store the result in another vector.static PVectorPVector.fromAngle(double angle) ( begin auto-generated from PVector_sub.xml ) Make a new 2D unit vector from an angle.static PVectorMake a new 2D unit vector from an anglePVector.get()Deprecated.Boundary.getA()Getter for the first point.Boundary.getB()Getter for the second point.PVector.limit(double max) ( begin auto-generated from PVector_limit.xml ) Limit the magnitude of this vector to the value used for the max parameter.Boundary.midPoint()Calculats the middle point of the boundary.PVector.mult(double n) ( begin auto-generated from PVector_mult.xml ) Multiplies a vector by a scalar or multiplies one vector by another.static PVectorstatic PVectorMultiply a vector by a scalar, and write the result into a target PVector.PVector.normalize()( begin auto-generated from PVector_normalize.xml ) Normalize the vector to length 1 (make it a unit vector).static PVectorPVector.random2D()( begin auto-generated from PVector_random2D.xml ) Make a new 2D unit vector with a random direction.static PVectorSet a 2D vector to a random unit vector with a random directionstatic PVectorPVector.random3D()( begin auto-generated from PVector_random3D.xml ) Make a new 3D unit vector with a random direction.static PVectorSet a 3D vector to a random unit vector with a random directionPVector.rotate(double theta) ( begin auto-generated from PVector_rotate.xml ) Rotate the vector by an angle (only 2D vectors), magnitude remains the same ( end auto-generated )PVector.set(double[] source) Set the x, y (and maybe z) coordinates using a double[] array as the source.PVector.set(double x, double y) PVector.set(double x, double y, double z) ( begin auto-generated from PVector_set.xml ) Sets the x, y, and z component of the vector using two or three separate variables, the data from a PVector, or the values from a double array.PVector.setMag(double len) ( begin auto-generated from PVector_setMag.xml ) Set the magnitude of this vector to the value used for the len parameter.Sets the magnitude of this vector, storing the result in another vector.PVector.sub(double x, double y) PVector.sub(double x, double y, double z) ( begin auto-generated from PVector_sub.xml ) Subtracts x, y, and z components from a vector, subtracts one vector from another, or subtracts two independent vectors.static PVectorSubtract one vector from anotherstatic PVectorSubtract one vector from another and store in another vectorMethods in com.JayPi4c.NeuroEvolution.plugins.util with parameters of type PVectorModifier and TypeMethodDescription( begin auto-generated from PVector_add.xml ) Adds x, y, and z components to a vector, adds one vector to another, or adds two independent vectors together.static PVectorAdd two vectorsstatic PVectorAdd two vectors into a target vectorstatic doublePVector.angleBetween(PVector v1, PVector v2) ( begin auto-generated from PVector_angleBetween.xml ) Calculates and returns the angle (in radians) between two vectors.( begin auto-generated from PVector_cross.xml ) Calculates and returns a vector composed of the cross product between two vectors.static PVectordouble( begin auto-generated from PVector_dist.xml ) Calculates the Euclidean distance between two points (considering a point as a vector object).static doublestatic PVectorDivide a vector by a scalar and return the result in a new vector.static PVectorDivide a vector by a scalar and store the result in another vector.double( begin auto-generated from PVector_dot.xml ) Calculates the dot product of two vectors.static doublestatic PVectorMake a new 2D unit vector from an anglestatic PVectorstatic PVectorMultiply a vector by a scalar, and write the result into a target PVector.static PVectorSet a 2D vector to a random unit vector with a random directionstatic PVectorSet a 3D vector to a random unit vector with a random directionSets the magnitude of this vector, storing the result in another vector.( begin auto-generated from PVector_sub.xml ) Subtracts x, y, and z components from a vector, subtracts one vector from another, or subtracts two independent vectors.static PVectorSubtract one vector from anotherstatic PVectorSubtract one vector from another and store in another vectorMethod parameters in com.JayPi4c.NeuroEvolution.plugins.util with type arguments of type PVectorModifier and TypeMethodDescriptionBoundary.createBoundaries(List<PVector> points, boolean closed) Creates a list of Boundaries from a list of points.Constructors in com.JayPi4c.NeuroEvolution.plugins.util with parameters of type PVector