예제 #1
0
// \brief Return the inverse of a transform
//
// If the inverse cannot be computed, a new identity transform
// is returned.
//
// \param transform Transform object
// \return The inverse matrix
// CSFML_GRAPHICS_API sfTransform sfTransform_getInverse(const sfTransform* transform);
func (self Transform) GetInverse() Transform {
	C.sfTransform_getInverse(self.Cref)
	return self
}
예제 #2
0
// \brief Return the inverse of a transform
// If the inverse cannot be computed, a new identity transform
// is returned.
// \param transform Transform object
// \param result Returned inverse matrix
// void sfTransform_getInverse(const sfTransform* transform, sfTransform* result);
func (self Transform) Inverse() Transform {
	t := Transform{}
	C.sfTransform_getInverse(self.Cref, t.Cref)
	return t
}