MCPcopy Create free account
hub / github.com/carbonengine/trinity / GetValue

Method GetValue

trinity/Curves/Tr2CurveVector3Lerp.cpp:27–44  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

25
26
27Vector3 Tr2CurveVector3Lerp::GetValue( double time ) const
28{
29 Vector3 v = m_initialValue;
30 if( m_curve == nullptr )
31 {
32 return v;
33 }
34
35 if( time < m_curveStartTime && m_curveStartTime > 0.0 )
36 {
37 v = LerpToFirstKey( time );
38 }
39 else
40 {
41 m_curve->GetValueAt( &v, time - m_curveStartTime );
42 }
43 return v;
44}
45
46Vector3 Tr2CurveVector3Lerp::LerpToFirstKey( double time ) const
47{

Callers

nothing calls this directly

Calls 1

GetValueAtMethod · 0.45

Tested by

no test coverage detected