Java java.lang Math Vector

Java examples for java.lang:Math Vector

Description

Click the following links for the tutorial for java.lang and Math Vector.

  1. create Glyph Vector
  2. Adds two vectors, result = v1 + v2
  3. Adds 3D vectors, result = v1 + v2
  4. Return the angle between to vectors in radians
  5. Copies a vector of length 2
  6. Copies a vector of length 3
  7. Copies a vector of length 4
  8. Return the cosines of the angle between to vectors


  9. cross product vec1 x vec2
  10. Return the determinant of 3 vectors
  11. Return the squared distance between the given two points described vector v1 and v2.
  12. Return the distance between the given two points described vector v1 and v2.
  13. Divides a vector by param using given result float[], result = vector / scale
  14. Return the dot product of two points
  15. get Normal Vector
  16. Returns the 3d surface normal of a triangle given three vertices.


  17. Finds the plane equation of a plane given its normal and a point on the plane.
  18. Compute the winding of given points
  19. Check if three vertices are linear
  20. Check if a vertex is in triangle using barycentric coordinates computation.
  21. Return true if both vectors are equal w/o regarding an epsilon.
  22. Return true if vector is zero, no FloatUtil#EPSILON is taken into consideration.
  23. Check if one of three vertices are in triangle using barycentric coordinates computation.
  24. Return true if all two vector components are zero, i.e.
  25. Calculate the midpoint of two points
  26. Multiplication of column-major 4x4 matrix with vector
  27. Matrix Vector multiplication
  28. Normalize a vector
  29. Return the squared length of a vector, a.k.a the squared norm or squared magnitude
  30. Return the length of a vector, a.k.a the norm or magnitude
  31. Scales a vector by param using given result float[], result = vector * scale
  32. Scales a 3D vector by param using given result float[], result = vector * scale
  33. Subtracts two vectors, result = v1 - v2
  34. Subtracts two 3D vectors, result = v1 - v2
  35. Compute the angle between the vector (1,0) and the given vector.
  36. Return the length of a vector.
  37. Compute two arbitrary vectors perpendicular to the given normalized vector (x, y, z), and store them in dest1 and dest2, respectively.
  38. Checks to see if 2 vectors are Approximately parallel
  39. Calculate angle at B, given 3 positions via Vector3d
  40. Compute the cross product (a vector) of two vectors.
  41. Compute the dot product (a scalar) between two vectors.
  42. Construct the vector specified by two points.
  43. Calculates the dot product of two vectors.
  44. Calculates the normalized dot product of two vectors.
  45. Generates a vector that forms an angle of 90 degrees with the given vector.
  46. Generates a vector pointing in the opposite direction.
  47. Checks for the null vector.
  48. Calculates the vector that lies between the given vectors from - a and from b with the given length.
  49. Normalizes a vector, such that its length is 1.0 .
  50. Calculates the relative orientation of two vectors.
  51. Calculates the length of a vector.
  52. Calculates the squared length of a vector.
  53. Sets the length of a vector.
  54. Calculates the absolute orientation of a given vector.
  55. Calculates the vector in the middle of the two given vectors.
  56. Rotates a vector around the origin.
  57. Vector Clamp a given value between 0.1 and PI - 0.1.
  58. Compute the scalar product of two vectors
  59. Compute the pearson correlation between two rating vectors.
  60. Compute the length of a vector
  61. compute Vector Mean
  62. compute Vector Minus Mean
  63. Compute the intersection of 2 lines described by a point and a vector.
  64. Compute the squared norm of a vector
  65. Gets a vector perpendicular to the vector p2-p1, pointing to the right with respect to the direction of p2-p1.
  66. Gets a unit vector which bisects (p1 - p2) and (p3 - p2).
  67. Computes the magnitude of an N-D vector.
  68. Obtains the z-coordinate of the cross product of the 2D vectors p2-p1 and p3-p2, useful for determining whether the curve p1->p2->p3 is curving to the right or left.
  69. Multiplies an N-D vector by a scalar.
  70. Computes the N-D unit vector in the direction of the vector supplied.
  71. Creates the vector p2-(minus) p1.
  72. Given a point O(oriX,oriY) and a vector V(oriDX,oriDY), with V origin in O and V unit vector, tells how much we need to rotate V around O so that V points to Target.
  73. Computes the dot product of two vectors.
  74. Computes the similarity of the two vectors.
  75. Given two vectors adds them up and returns their sum
  76. Given 2 vectors returns the hadamard product of them
  77. get Mean Vector
  78. Returns the norm (i.e length) of a given vector
  79. Append the vector u to the vector v and return the result
  80. Constructs all embedding vectors of size k for the data.
  81. Recursively Calculation of DouglasPeucker Algorithm
  82. Perform a cosine similarity scoring between two vectors
  83. Computes Dice Coefficient between two vectors
  84. Computes Euclidean distance between two vectors
  85. Computes Jaccard Coefficient between two vectors
  86. Perform a word match-based scoring between two vectors
  87. Perform a vector dot product between two vectors