Package: graphene

Function graphene:point-alloc

Lambda List

graphene:point-alloc ()

Return Value

The newly allocated graphene:point-t instance.

Details

Allocates a new graphene:point-t instance. The coordinates of the returned point are initialized to (0.0, 0.0). Use the graphene:point-free function to free the resources allocated by this function.

Examples

It is possible to chain this function with the graphene:point-init or graphene:point-init-from-point functions.
(defun point-new (x y)
  (graphene:point-init (graphene:point-alloc) x y))
(defun point-copy (p)
  (graphene:point-init-from-point (graphene:point-alloc) p))    
 

See also

2023-9-22