MVSim
Lightweight simulator for 2.5D vehicles and robots
Public Types | Public Member Functions | Public Attributes | List of all members
mvsim::VerticalPlane::Opening Struct Reference

#include <VerticalPlane.h>

Public Types

enum class  Type { DOOR , WINDOW }
 

Public Member Functions

bool overlaps (float pos_start, float pos_end) const
 

Public Attributes

Type type = Type::DOOR
 
float position = 0.0f
 Position along wall length [0,1] (0=start, 1=end)
 
float width = 1.0f
 Width of opening in meters.
 
float z_min = 0.0f
 Bottom height of opening (meters)
 
float z_max = 2.1f
 Top height of opening (meters)
 
std::string name
 Optional name for the opening.
 

Detailed Description

Structure to represent an opening (door or window) in the wall

Member Function Documentation

◆ overlaps()

bool mvsim::VerticalPlane::Opening::overlaps ( float  pos_start,
float  pos_end 
) const

Check if this opening overlaps with a given position range


The documentation for this struct was generated from the following file: