Quad.initFromRect

graphene.quad.Quad initFromRect(graphene.rect.Rect r) nothrow

Initializes a #graphene_quad_t using the four corners of the given #graphene_rect_t.

Parameters

ra #graphene_rect_t

Returns

the initialized #graphene_quad_t