Package: graphene

Function graphene:point-to-vec2

Lambda List

graphene:point-to-vec2 (p v)

Arguments

p -- a graphene:point-t instance
v -- a graphene:vec2-t instance

Return Value

The graphene:vec2-t instance with the coordinates of the point.

Details

Stores the coordinates of the given point into a vector.

Examples

(graphene:with-point (p 1.0 2.0)
  (graphene:with-vec2 (v)
    (graphene:vec2-to-float (graphene:point-to-vec2 p v))))
=> (1.0 2.0)    
 

See also

2023-12-3