Rouven Spreckels
9824fbc67b
Add reflection alias.
2021-07-27 15:18:07 +02:00
Rouven Spreckels
06e20b4b95
Add getter for reflection bias. Fix typos.
2021-07-27 15:17:30 +02:00
Sébastien Crozet
a01365456c
Merge pull request #954 from jpetkau/patch-1
...
Include "rand" in feature list for docs.rs
2021-07-27 10:45:48 +02:00
Sébastien Crozet
0d3af06e01
Merge pull request #952 from remilauzier/dev
...
Fix rust_2018_idioms warnings
2021-07-27 10:29:40 +02:00
Sébastien Crozet
e757b8aaa7
Merge pull request #953 from Andlon/relax_opoint_serde_bounds
...
Do not require T: (De)Serialize for OPoint impl
2021-07-27 10:27:06 +02:00
Jeff Petkau
7dd12e8e7a
Include "rand" in feature list for docs.rs
...
Random support was gated by the "rand" feature in version 0.25.1, but not added to the docs.rs list, causing the gated functions to disappear from docs.
2021-07-26 10:13:58 -07:00
Andreas Longva
de540aa7ff
Do not require T: (De)Serialize for OPoint impl
...
The bounds recently got a little too strict by accident.
2021-07-26 17:57:24 +02:00
Rémi Lauzier
ed6b34a0d6
Fix rust_2018_idioms warnings
2021-07-25 13:18:21 -04:00
Sébastien Crozet
305f39faf8
Merge pull request #951 from CAD97/user-guide-links
...
Fix a few bitrotted user guide links
2021-07-24 18:29:02 +02:00
CAD97
ceb30a68b8
Fix a few bitrotted user guide links
2021-07-23 21:22:59 -05:00
Crozet Sébastien
7eb5fd3ba6
Update the changelog.
2021-07-11 17:52:45 +02:00
Sébastien Crozet
cce7d9e9b6
Merge pull request #937 from jsmith628/fixed-size-borrow
...
Implemented Borrow and BorrowMut on fixed size matrices
2021-07-11 17:48:09 +02:00
Sébastien Crozet
c320988088
Merge pull request #944 from vadixidav/dev
...
import macros from alloc
2021-07-11 17:47:51 +02:00
Sébastien Crozet
b007e192d4
Merge pull request #938 from Nateckert/omatrix_to_string
...
Make display generical for Omatrix
2021-07-11 17:45:02 +02:00
Crozet Sébastien
ca1297acfb
Release v0.28.0
2021-07-11 17:42:45 +02:00
Geordon Worley
02e9ac4cad
import macros from alloc to solve issues with missing format! macro, among other issues
2021-07-10 18:33:11 -05:00
Sébastien Crozet
7bcb54641d
Merge pull request #943 from dimforge/point_dim_name
...
Add a OPoint type that takes type-level integers instead of const-generics
2021-07-10 11:40:31 +02:00
Sébastien Crozet
ac61e112dd
Merge pull request #932 from CAD97/moar-const
...
Remove scalar bound from geometry type defs
2021-07-10 11:28:23 +02:00
Crozet Sébastien
2ce6811e2c
Fix compilation when enabling the bytemuck feature.
2021-07-10 11:24:23 +02:00
CAD97
85d07b22a3
FIx serde impl bounds
2021-07-09 15:30:06 -05:00
Sébastien Crozet
c5249f4c16
Merge pull request #940 from OfficialURL/safety
...
Removed unnecessary `unsafe` markers
2021-07-09 09:51:10 +02:00
Violeta Hernández
1be8964c12
Fixed indent
2021-07-08 11:15:08 -05:00
Violeta Hernández
04e937792b
Removed unnecessary unsafe
markers
2021-07-08 11:12:43 -05:00
Joshua Smith
a7fe7a5d9a
fixed check-fmt error
2021-07-08 11:05:32 -05:00
nathan.eckert
dd1530adc3
Cargo fmt
2021-07-08 14:20:35 +02:00
nathan.eckert
92a51662bf
Remove Allocator<usize, > from display
2021-07-08 14:18:22 +02:00
nathan.eckert
639382ea49
Add failing test higlighting the issue
2021-07-08 11:23:41 +02:00
Sébastien Crozet
40bc1cb304
Merge pull request #923 from OfficialURL/self_copy2
...
`&self` → `self` on `Copy` types.
2021-07-08 10:01:00 +02:00
Sébastien Crozet
0a5bd520a4
Merge pull request #922 from Cryptjar/impl-into-slice
...
Allow to extract the inner slices of SliceStorage
2021-07-08 09:50:41 +02:00
Sébastien Crozet
a66b54a015
Merge pull request #929 from remilauzier/dev
...
Fix some clippy warnings and typo
2021-07-08 09:44:43 +02:00
Sébastien Crozet
e58813915a
Merge pull request #934 from Andlon/point_dim_name
...
point_dim_name: Fix serde impls and Distribution impl for OPoint
2021-07-08 09:40:31 +02:00
Sébastien Crozet
40e6783a3a
Merge pull request #936 from OfficialURL/doc-comments
...
Trivial doc comment improvements
2021-07-08 09:39:35 +02:00
Joshua Smith
2279da446e
impl Borrow and BorrowMut for fixed size matrices
2021-07-07 13:26:19 -05:00
Violeta Hernández
6e96c28ad9
Trivial doc comment improvements
2021-07-06 21:05:25 -05:00
Rémi Lauzier
bbd60fbc8c
Fix some clippy warnings and typo
2021-07-06 11:39:29 -04:00
Sébastien Crozet
1fc29dcf63
Merge pull request #930 from CAD97/patch-1
...
impl Hash for Transform
2021-07-06 01:09:00 -07:00
Sébastien Crozet
e417ec86d7
Merge pull request #931 from CAD97/patch-2
...
Rotation::matrix_mut_unchecked may not cause UB
2021-07-06 01:08:34 -07:00
CAD97
314b4dd103
Remove scalar bound from geometry type defs
...
This was inconsistently applied, with some types having <T>, some having
<T: Scalar>, and some having <T: RealField>.
This unifies all types to match the convention of Matrix:
Just declare <T> at type def time, and apply bounds on impls only.
A significant advantage of this approach is const fn construction. Const
fn generics currently still can't have trait bounds, so any generic
const fn needs to only move opaque types around. Construction methods
such as new_unchecked or from_parts can be made const by removing their
generic bounds after this PR.
Actual constification is left to a follow-up PR.
Note that na::Transform is _not_ loosened here, as it has more complicated
definition requirements.
2021-07-05 19:04:10 -05:00
Christopher Durham
1eeaf3526c
Rotation::matrix_mut_unchecked may not cause UB
...
...because it isn't unsafe, so clarify the documentation to match.
2021-07-05 18:53:11 -05:00
Christopher Durham
3b4b661756
impl Hash for Transform
...
This just fixes the types in the existing TODO to compile.
2021-07-05 18:36:33 -05:00
Sébastien Crozet
b10711e66e
Merge pull request #927 from remilauzier/dev
...
Fix some clippy warnings
2021-07-05 06:55:26 -07:00
Sébastien Crozet
5b2b174b8b
Merge pull request #928 from CAD97/moar-const
...
Add a couple trivial const fn conversions
2021-07-05 06:55:17 -07:00
CAD97
e77a97e854
Add a couple trivial const fn conversions
2021-07-04 17:42:39 -05:00
Rémi Lauzier
78da5209e9
Fix some clippy warnings
2021-07-03 23:43:45 -04:00
Andreas Longva
92c26334ec
Fix serde impls and Distribution impl for OPoint
2021-07-02 12:01:01 +02:00
Crozet Sébastien
16b8f4812d
Define OPoint, a generic point with D: DimName
...
And define Point<T, const D: usize> as an alias for OPoint.
2021-06-26 18:39:20 +02:00
Violeta Hernández
d659747fa4
&self
→ self
on Copy
types.
2021-06-18 12:53:38 -05:00
Cryptjar
1554c0114e
Fix unsoundness in into_slice
by adding ContiguousStorage
bound.
2021-06-18 13:18:33 +02:00
Sébastien Crozet
0312981a4f
Merge pull request #921 from OfficialURL/ptr_alias
...
Fixed potential UB
2021-06-18 09:49:41 +02:00
Violeta Hernández
281b140365
Fix most clippy warnings
2021-06-18 09:45:37 +02:00