Sleeping Wombat Common Library  0.50.0
swCommonLibrary
Key.h
Go to the documentation of this file.
1 #pragma once
2 
9 
10 
13 template< typename ValueType >
14 struct Key
15 {
16  TimeType Time;
17  ValueType Value;
18 
19  explicit Key() = default;
20  explicit Key( TimeType t, ValueType val )
21  : Time( t )
22  , Value( val )
23  { }
24 };
25 
26 
27 
28 const static TimeType epsilon = TimeType( 0.00001 );
29 
30 
31 // ================================ //
32 //
33 template< typename ValueType >
34 bool operator<( const Key< ValueType >& first, const Key< ValueType >& second )
35 {
36  if( first.Time < second.Time - epsilon )
37  return true;
38  return false;
39 }
Plik zawiera definicje podstawowych typów zmiennych.
Animation key.
Definition: IInterpolator.h:21