예제 #1
0
파일: AABB2D.cpp 프로젝트: 222464/GLLight2D
void AABB2D::Scale(const Vec2f &scale)
{
	SetHalfDims(m_halfDims * scale);
}
예제 #2
0
파일: AABB2D.cpp 프로젝트: 222464/GLLight2D
void AABB2D::SetDims(const Vec2f &dims)
{
	SetHalfDims(dims / 2.0f);
}
예제 #3
0
파일: AABB.cpp 프로젝트: 222464/GLLight2D
void AABB::Scale(const Vec3f &scale)
{
	SetHalfDims(m_halfDims * scale);
}
예제 #4
0
void AABB::SetDims(const Vec2f &newDims)
{
	SetHalfDims(newDims / 2.0f);
}
예제 #5
0
파일: AABB.cpp 프로젝트: 222464/GLLight2D
void AABB::SetDims(const Vec3f &dims)
{
	SetHalfDims(dims * 0.5f);
}