Package: graphene

Function graphene:point3d-alloc

Lambda List

graphene:point3d-alloc ()

Return Value

The newly allocated graphene:point3d-t instance.

Details

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

Examples

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

See also

2023-9-22