Package: graphene

Accessor graphene:point-x

Lambda List

graphene:point-x (p)

Syntax

(graphene:point-x p) => x
(setf (graphene:point-x p) x)

Arguments

p -- a graphene:point-t instance
x -- a number coerced to a single float for the x coordinate

Details

Accessor of the x slot of the graphene:point-t structure. The x value is coerced to a single float before assignment.

Examples

(graphene:with-point (p 0.5 1.0) (graphene:point-x p))
=> 0.5
(graphene:with-point (p) (setf (graphene:point-x p) 3/2))
=> 1.5  
 

See also

2025-4-4