Package: graphene

Function graphene:vec2-init-from-float

Lambda List

graphene:vec2-init-from-float (v arg)

Arguments

v -- a graphene:vec2-t instance
arg -- a list with two numbers coerced to single floats

Return Value

The initialized graphene:vec2-t instance.

Details

Initializes v with the contents of the given list.

Note

The Lisp implementation does not use the C function, but calls the graphene:vec2-init function to inialize the vector.
(defun vec2-init-from-float (v arg)
  (apply #'graphene:vec2-init v arg))    
 

See also

2024-12-26