Quad
Object Hierarchy:
Description:
[ CCode ( cname = "graphene_quad_t" , copy_function = "g_boxed_copy" , free_function = "g_boxed_free" , type_id = "graphene_quad_get_type ()" ) ]
[ Version ( since = "1.0" ) ]
public struct Quad
A 4 vertex quadrilateral, as represented by four Point.
The contents of a Quad are private and should never be accessed directly.
Content:
Methods:
- public Rect bounds ()
Computes the bounding rectangle of this
and places it into r
.
- public bool contains (Point p)
Checks if the given Quad contains the
given Point.
- public unowned Point? get_point (uint index_)
Retrieves the point of a Quad at the given
index.
- public unowned Quad? init (Point p1, Point p2, Point p3, Point p4)
Initializes a Quad with the given points.
- public unowned Quad? init_from_points (Point[] points)
Initializes a Quad using an array of
points.
- public unowned Quad? init_from_rect (Rect r)
Initializes a Quad using the four corners
of the given Rect.