VR-Vantage
Loading...
Searching...
No Matches
DtEaser.h
Go to the documentation of this file.
1/*******************************************************************************
2** Copyright (c) 2015 MAK Technologies, Inc.
3** All rights reserved.
4*******************************************************************************/
5
8
9#pragma once
10
11#include <vrvUtil/vrvUtil.h>
12
13namespace makVrv
14{
18 {
19 public:
23 DtEaser(float x1, float y1, float x2, float y2);
25 virtual ~DtEaser();
26
29 float getEasedValue(float atX);
30
31 protected:
32 float calcBezier(float aT, float ax1, float ax2);
33 float getSlope(float at, float a1, float a2);
34 float getTforX(float x);
35
36 float myX1;
37 float myY1;
38 float myX2;
39 float myY2;
40 };
41}
DtEaser(float x1, float y1, float x2, float y2)
CTOR points(x1, y1) and (x2, y2) are the control points to a bezier curve between (0,...
float getTforX(float x)
virtual ~DtEaser()
DTOR.
float calcBezier(float aT, float ax1, float ax2)
float getSlope(float at, float a1, float a2)
float myY2
Definition DtEaser.h:39
float getEasedValue(float atX)
return the interpolated Y value at the X value. Input values are between 0 and 1
float myY1
Definition DtEaser.h:37
float myX2
Definition DtEaser.h:38
float myX1
Definition DtEaser.h:36
Contains DtCreateSensorFieldOfViewCommand and DtCreateSensorFieldOfViewCommandCreator class declarati...
Definition DtGridLinesSettingsRecord.h:16
Contains DLL export macros.
#define DT_DLL_VRVUTIL
Definition vrvUtil.h:34