Graphmath.Vec3.create

You're seeing just the function create, go back to Graphmath.Vec3 module for more information.

Specs

create() :: vec3()

create() creates a zeroed vec3.

It takes no arguments.

It returns a vec3 of the form { 0.0, 0.0, 0.0 }.

Specs

create([float()]) :: vec3()

create(vec) creates a vec3 from a list of 3 or more floats.

vec is a list of 3 or more floats.

It returns a vec3 of the form {x,y,z}, where x, y, and z are the first three elements in vec.

Link to this function

create(x, y, z)

Specs

create(float(), float(), float()) :: vec3()

create(x,y,z) creates a vec3 of value (x,y,z).

x is the first element of the vec3 to be created.

y is the second element of the vec3 to be created.

z is the third element of the vec3 to be created.

It returns a vec3 of the form {x,y,z}.