manganese_serialization_kit v0.2.5 Manganese.SerializationKit.Structs.UnityVector4
A Unity vector4 value with :x, :y, :z, and :w components.
Note that Unity structs are available in order to process the data in the API server, but most vector calculations occur in the environment simulation service.
This module can be used as an Ecto type for de/serialization when interacting with the database.
Link to this section Summary
Functions
Deserialize a vector4 from a map.
Deserialize a vector4 from a tuple.
Serialize a vector4 to a map.
Serialize a vector4 to a tuple.
The PostgreSQL composite type used to represent a vector4.
A vector4 with zero values for all components.
Link to this section Types
A Unity vector4.
t_external()
t_external() :: map()
t_external() :: map()
t_internal()
Link to this section Functions
from_map(map)
from_map(t_external()) :: t()
from_map(t_external()) :: t()
Deserialize a vector4 from a map.
from_tuple(arg)
from_tuple(t_internal()) :: t()
from_tuple(t_internal()) :: t()
Deserialize a vector4 from a tuple.
to_map(unity_vector4)
to_map(t()) :: t_external()
to_map(t()) :: t_external()
Serialize a vector4 to a map.
to_tuple(unity_vector4)
to_tuple(t()) :: t_internal()
to_tuple(t()) :: t_internal()
Serialize a vector4 to a tuple.
type()
The PostgreSQL composite type used to represent a vector4.
zero()
zero() :: t()
zero() :: t()
A vector4 with zero values for all components.