Skip to content

RoomMaterial

struct RoomMaterial

Represents the material of a Room wall.

Variables

Name Description
m_type The type of the material.

Operators

Name Description
operator== The absorption coefficients of the material. Checks if two RoomMaterial objects are equal.
operator!= Checks if two RoomMaterial objects are not equal.

Functions

Name Description
RoomMaterial Constructs a new RoomMaterial.
RoomMaterial Constructs a new predefined RoomMaterial.

Variable Details

m_type

RoomMaterialType m_type

The type of the material.

Operator Details

operator!=

bool operator!=(const RoomMaterial& other) const

Checks if two RoomMaterial objects are not equal.

Parameter other
The other RoomMaterial to compare with.
Return
true if the materials are not equal, false otherwise.

operator==

bool operator==(const RoomMaterial& other) const

The absorption coefficients of the material.

Checks if two RoomMaterial objects are equal.

Parameter other
The other RoomMaterial to compare with.
Return
true if the materials are equal, false otherwise.

Function Details

RoomMaterial

RoomMaterial()

Constructs a new RoomMaterial.

Note

This constructor initializes a RoomMaterialType::Custom material.

explicit RoomMaterial(RoomMaterialType type)

Constructs a new predefined RoomMaterial.

Parameter type
The type of the material.