Package: graphene

Accessor graphene:point-y

Lambda List

graphene:point-y (p)

Syntax

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

Arguments

p -- a graphene:point-t instance
y -- a float with the y coordinate

Details

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

Examples

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

See also

2024-1-20