@vertexvis/geometry 0.24.3-canary.6 → 0.24.3-testing.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -805,12 +805,12 @@ var matrix4 = /*#__PURE__*/Object.freeze({
805
805
  });
806
806
 
807
807
  /**
808
- * Creates a new set of Euler angles where each axis of rotation is defined by an angle,
808
+ * Creates a new euler angle where each axis of rotation is defined by an angle,
809
809
  * in radians. If no value is given, then `{x: 0, y: 0, z: 0, order: 'xyz'}` is
810
810
  * returned.
811
811
  *
812
- * @param value The values to populate the Euler angles with.
813
- * @returns A set of Euler angles.
812
+ * @param value The values to populate the euler angle with.
813
+ * @returns A euler angle.
814
814
  */
815
815
  function create$c(value) {
816
816
  var _a, _b, _c, _d;
@@ -823,12 +823,12 @@ function create$c(value) {
823
823
  };
824
824
  }
825
825
  /**
826
- * Creates a new set of Euler angles where each axis of rotation is defined by an angle,
826
+ * Creates a new euler angle where each axis of rotation is defined by an angle,
827
827
  * in degrees. If no value is given, then `{x: 0, y: 0, z: 0, order: 'xyz'}` is
828
828
  * returned.
829
829
  *
830
- * @param value The values to populate the Euler angles with.
831
- * @returns A set of Euler angles.
830
+ * @param value The values to populate the euler angle with.
831
+ * @returns A euler angle.
832
832
  */
833
833
  function fromDegrees(value) {
834
834
  if (value === void 0) { value = {}; }
@@ -841,13 +841,9 @@ function fromDegrees(value) {
841
841
  });
842
842
  }
843
843
  /**
844
- * Creates a set of Euler angles from the rotation components of a 4x4 matrix. The
844
+ * Creates a euler angle from the rotation components of a 4x4 matrix. The
845
845
  * rotation components are represented by the upper 3x3 of the matrix.
846
846
  *
847
- * Note that there are two solutions for the Euler angle of the 2nd applied
848
- * rotation (i.e. y for xyz) because sin(theta) = sin(PI-theta).
849
- * The returned angle will always be the solution between -PI/2 and PI/2.
850
- *
851
847
  * @param matrix A pure rotation matrix, unscaled.
852
848
  * @param order The order that the rotations are applied.
853
849
  */
@@ -924,12 +920,12 @@ function fromRotationMatrix(matrix, order) {
924
920
  return { x: x, y: y, z: z, order: order };
925
921
  }
926
922
  /**
927
- * Returns a set of Euler angles that was decoded from a JSON string. Supports either
923
+ * Returns a euler angle that was decoded from a JSON string. Supports either
928
924
  * extracting values from an array `[x, y, z, order]` or object `{x, y, z,
929
925
  * order}`.
930
926
  *
931
927
  * @param json A JSON object.
932
- * @returns A set of Euler angles.
928
+ * @returns A euler angle.
933
929
  */
934
930
  function fromJson$4(json) {
935
931
  var obj = JSON.parse(json);
@@ -943,7 +939,7 @@ function fromJson$4(json) {
943
939
  }
944
940
  }
945
941
  /**
946
- * Type guard that checks if the given type is a set of Euler angles.
942
+ * Type guard that checks if the given type is a Euler.
947
943
  */
948
944
  function isType$1(obj) {
949
945
  // eslint-disable-next-line @typescript-eslint/no-explicit-any