Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Tensor: Standardize Vector2, Vector3, Vector4, Color3, Color4, Quater…
…nion, and Matrix (#14235) * Added new types * Added Member, Flatten, and tensor * Updated classes in vector.ts to use Constructor * Removed TensorValue and fixed comments * Fixed wikipedia link * Added Tensor to vector and color classes Added FlattenTuple * Added IsTuple types Fixed Flatten Added comment for Vector Formatting * Added public to Tensor and Vector members * Fixed types being or not being DeepImmutable * Formatting * Added Tuple * Updated arrayTools to use new Tuple type * Updated to use object.defineProperty for dimension * Fixed dimension values * Added Dimension Updated MultidimensionalArray to correctly handle nesting * Fixed Dimension import * Fixed Tensor not working with non `number[]` types Added RecursiveArray * Fixed equalsToFloats not using Flatten * Made Matrix Tensor-compatible * Updated Quaternion to be Tensor compatible * Renamed I<Math>Like to <Math>Like * Moved <Math>Like to correct files Fixed MatrixLike having toArray instead of asArray * Fixed duplicate function implementation * Changed dimension to be Readonly Fixed non-type import of interface * Fixed mispelling * Updated Vector3.asArray and Matrix.asArray * Updated test Playground * Changed default Tensor value type to unknown[] * Added TensorValue * Fixed stuff from merge * Fixed JSDoc comment parameter order * Added Tensor.rank * Fixed typo * Formatting * Formatting * Made Matrix.asArray zero-copy * Moved from defineProperty to defineProperties * Reverted *Like changes * Fixed JSDoc comments * Formatting * Formatting (clean install) * Fixed eslint warnings * Reverted IViewportLike * Reverted flloat -> number change in math.like * Fixed imports * Fixed more imports * Reverted more organization changes * Updated directionalLightFrustumViewer._createGeometry vectors * Added Matrix.toArray backwards compatibility * Fixed RecursiveArray spelling Co-authored-by: Popov72 <[email protected]> * Fixed Tensor description Co-authored-by: Popov72 <[email protected]> * Fixed Vector description Co-authored-by: Popov72 <[email protected]> * Comment overhaul Fixed type spelling Reverted changes to Vector3.minimizeInPlaceFromFloats and Vector3.maximizeInPlaceFromFloats * Changed m.length to 16 * Removed some method implementations from Color3 and Color4 Fixed Tensor.divideToRef doc comment * Added internal to doc comment for color methods * Removed methods from Quaternion * Fixed Vector not implementing Vector * made all Tensor instance methods abstract * Added abstract to Vector * Removed unused types * Removed Tensor.toString * Seperated instance and static of Tensor and Vector into interfaces Fixed some type paramters * Added TensorStatic.prototype * Removed type parameters in Tensor and Vector methods Added Vector2 and Vector3 RandomToRef Removed DistanceOfPointFromSegment from Vector Added static side checks to Vector2 and Vector3 * Added Vector4 static side * Added static side to Quaternion Moved Clamp and ClampToRef from Vector to Tensor * Formatting --------- Co-authored-by: Popov72 <[email protected]>
- Loading branch information