Quaternion::Quaternion( Vector3& value )
{
	m_self = glm::quat( value.GetSelf() );
}
Vector3 Quaternion::ApplyRotation( Vector3& value )
{
	return Vector3( glm::rotate(m_self, value.GetSelf()) );
}
Exemplo n.º 3
0
void Vector3::operator*=( Vector3& other )
{
	m_self *= other.GetSelf();
}
Exemplo n.º 4
0
Vector3 Vector3::operator*( Vector3& other )
{
	return Vector3(m_self * other.GetSelf());
}
Exemplo n.º 5
0
void Vector3::operator/=( Vector3& other )
{
	m_self /= other.GetSelf();
}
Exemplo n.º 6
0
void Vector3::operator-=( Vector3& other )
{
	m_self -= other.GetSelf();
}
Exemplo n.º 7
0
void Vector3::operator+=( Vector3& other )
{
	m_self += other.GetSelf();
}
Exemplo n.º 8
0
Vector3 Vector3::Normalize( Vector3& value )
{
	return Vector3( glm::normalize(value.GetSelf()) );
}
Exemplo n.º 9
0
float Vector3::Dot( Vector3& value1, Vector3& value2 )
{
	return glm::dot( value1.GetSelf(), value2.GetSelf() );
}