Class MessageSpatial2D::Out

Nested Relationships

This class is a nested type of Class MessageSpatial2D.

Inheritance Relationships

Base Type

Class Documentation

class flamegpu::MessageSpatial2D::Out : public flamegpu::MessageBruteForce::Out

This class is accessible via DeviceAPI.message_out if MessageSpatial3D is specified in FLAMEGPU_AGENT_FUNCTION It gives access to functionality for outputting spatially partitioned messages

Public Functions

__device__ inline Out(detail::curve::Curve::NamespaceHash agentfn_hash, detail::curve::Curve::NamespaceHash message_hash, const void*, unsigned int *scan_flag_messageOutput)

Constructer Initialises member variables

  • agentfn_hash – Added to message_hash to produce combined_hash

  • message_hash – Added to agentfn_hash to produce combined_hash

  • scan_flag_messageOutput – Scan flag array for optional message output

__device__ inline void setLocation(const float &x, const float &y) const

Sets the location for this agents message


Convenience wrapper for setVariable()

  • x – Message x coord

  • y – Message y coord