Uses of Class
simulation.Vector
-
Uses of Vector in simulation
Methods in simulation that return Vector Modifier and Type Method Description Vector[]Dna. getAcceleration()Get the acceleration vector of this dna object.static VectorPopulationMember. getInitialVelocity()Get this objects initial velocity.static VectorPopulationMember. getStartCoordinates()Get this species start coordinates.VectorMovable. getVelocity()Get the velocity of an object.VectorDna. readNextDna()Read next acceleration value in the array and move pointer by 1.Methods in simulation with parameters of type Vector Modifier and Type Method Description voidVector. addVector(Vector vector)Add values of different vector to this vector.voidMovable. addVelocity(Vector velocity)Add a new velocity.doubleVector. length(Vector vector)Get a length of the vector.voidMovable. multiply(Vector vector)Multiply velocity by a vector.voidVector. multiply(Vector vector)Multiply this vectors values by different vector's values.voidVector. setVector(Vector vector)Set vector values to be equal to other vector.voidMovable. setVelocity(Vector velocity)Set velocity of the object.Constructors in simulation with parameters of type Vector Constructor Description FastPopulationMember(Vector diameters)Creates new FastPopulationMember object with given diameters.Population(int fastPopulationSize, int slowPopulationSize, Vector slowPopulationMemberDiameters, Vector fastPopulationMemberDiameters)Generate new population with given slow and fast population member size and their diameters.SlowPopulationMember(Vector diameters)Creates new SlowPopulationMember object with given diameters.Vector(Vector vector)Clone a vector.