Ejemplo n.º 1
0
// Short-circuit the identity transform
void CC3Matrix::scaleBy( const CC3Vector& aScale )
{
	if ( !aScale.equals( CC3Vector::kCC3VectorUnitCube ) ) 
	{
		implScaleBy( aScale );
		m_isIdentity = false;
		m_isRigid = false;
	}
}
Ejemplo n.º 2
0
void CC3Matrix::populateFromScale( const CC3Vector& aScale ) 
{
	if ( aScale.equals( CC3Vector::kCC3VectorUnitCube )) {
		populateIdentity();
	} else {
		implPopulateFromScale( aScale );
		m_isIdentity = false;
		m_isRigid = false;
	}
}