mirror of
https://github.com/bevyengine/bevy
synced 2024-11-10 07:04:33 +00:00
add const
s to curve module functions (#14785)
Just a really minor polish of the ongoing curve RFC implementation effort
This commit is contained in:
parent
cf69488982
commit
f88ab5a1f2
2 changed files with 3 additions and 3 deletions
|
@ -171,7 +171,7 @@ impl<T> EvenCore<T> {
|
|||
|
||||
/// The domain of the curve derived from this core.
|
||||
#[inline]
|
||||
pub fn domain(&self) -> Interval {
|
||||
pub const fn domain(&self) -> Interval {
|
||||
self.domain
|
||||
}
|
||||
|
||||
|
|
|
@ -73,13 +73,13 @@ impl Interval {
|
|||
|
||||
/// Get the start of this interval.
|
||||
#[inline]
|
||||
pub fn start(self) -> f32 {
|
||||
pub const fn start(self) -> f32 {
|
||||
self.start
|
||||
}
|
||||
|
||||
/// Get the end of this interval.
|
||||
#[inline]
|
||||
pub fn end(self) -> f32 {
|
||||
pub const fn end(self) -> f32 {
|
||||
self.end
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue