Beispiel #1
0
void Camera::scale(const float x, const float y, const float z,float mat4x4[16])
{
	indentity(mat4x4);
	mat4x4[0]  = x;
	mat4x4[5]  = y;
	mat4x4[10] = z;
}
Beispiel #2
0
void Camera::translate(const float x, const float y, const float z,float mat4x4[16])
{
	indentity(mat4x4);
	mat4x4[12] = x;
	mat4x4[13] = y;
	mat4x4[14] = z;
}
Beispiel #3
0
void Camera::resetGlobalTransformation()
{
	m_xMov = 0;
	m_yMov = 0;
	m_zMov = 0;
	
	m_scaleFactor = 1;
	m_zoomFactor = 1;
	
	m_xTrans = 0;
	m_yTrans = 0;

	m_lastPosX = 0;
	m_lastPosY = 0;

	indentity(m_globalTransformation);
	indentity(m_rotMatrix);
}
Beispiel #4
0
void Camera::rotZ(float angle,float mat4x4[16])
{
		float s = sin(angle);
		float c = cos(angle);

		indentity(mat4x4);

		mat4x4[0] = c;  mat4x4[4] = -s;
		mat4x4[1] = s; mat4x4[5] = c;		
}
Beispiel #5
0
void Camera::rotY(float angle,float mat4x4[16])
{
		float s = sin(angle);
		float c = cos(angle);

		indentity(mat4x4);

		mat4x4[0] = c;  mat4x4[8] = s;
		mat4x4[2] = -s; mat4x4[10] = c;		
}
Beispiel #6
0
BOOST_FIXTURE_TEST_CASE(UnregisterWithoutConnection, RemoteRegistratorFixture)
{
  connectToHub();

  disconnectToHub();

  Name indentity("/remote/register");
  remoteRegistrator->m_regEntries.insert(
            nfd::rib::RemoteRegistrator::RegisteredEntry(indentity, scheduler::EventId()));

  eraseEntryWithIdentity(indentity);

  BOOST_REQUIRE_EQUAL(face->sentInterests.size(), 0);
}
Beispiel #7
0
mat4::mat4(void)
{
	indentity();
}