Vesper 0.5.1
Vesper is short form for the Latin word for "Bat", as Vesper is designed to be small, lightweight, and easily handle things like particles and flocking behaviors in accordance with the nature of bats. \n It is meant to be a particle simulation, VFX editor, and CAN be used secondarily as a small game engine.
GitHub | Vesper Updates | Creator
Loading...
Searching...
No Matches
Vesper::Timestep Class Reference

Represents a time step in seconds. More...

#include <Timestep.h>

Public Member Functions

 Timestep (float time=0.0f)
 Constructs a Timestep with the given time in seconds.
 operator float () const
float GetSeconds () const
 Returns the time in seconds.
float GetMilliseconds () const
 Returns the time in milliseconds.

Private Attributes

float m_Time

Detailed Description

Represents a time step in seconds.

Constructor & Destructor Documentation

◆ Timestep()

Vesper::Timestep::Timestep ( float time = 0.0f)
inline

Constructs a Timestep with the given time in seconds.

Parameters
timeThe time in seconds.
19 : m_Time(time)
20 {
21 }
float m_Time
Definition Timestep.h:30

References m_Time.

Member Function Documentation

◆ GetMilliseconds()

float Vesper::Timestep::GetMilliseconds ( ) const
inline

Returns the time in milliseconds.

28{ return m_Time * 1000.0f; }

References m_Time.

◆ GetSeconds()

float Vesper::Timestep::GetSeconds ( ) const
inline

Returns the time in seconds.

26{ return m_Time; }

References m_Time.

◆ operator float()

Vesper::Timestep::operator float ( ) const
inline
23{ return m_Time; }

References m_Time.

Member Data Documentation

◆ m_Time

float Vesper::Timestep::m_Time
private

The documentation for this class was generated from the following file: