HighMap library (C++)
Loading...
Searching...
No Matches
hmap::CoordFrame Class Reference

#include <coord_frame.hpp>

Public Member Functions

 CoordFrame ()
 
 CoordFrame (glm::vec2 origin, glm::vec2 size, float rotation_angle)
 
glm::vec2 get_origin () const
 
glm::vec2 get_size () const
 
float get_rotation_angle () const
 
void set_origin (glm::vec2 new_origin)
 
void set_size (glm::vec2 new_size)
 
void set_rotation_angle (float new_angle)
 
glm::vec4 compute_bounding_box () const
 
float get_heightmap_value_bilinear (const VirtualArray &h, float gx, float gy, float fill_value=0.f) const
 
bool is_point_within (float gx, float gy) const
 
glm::vec2 map_to_global_coords (float rx, float ry) const
 
glm::vec2 map_to_relative_coords (float gx, float gy) const
 
float normalized_distance_to_edges (float gx, float gy) const
 
float normalized_shape_factor (float gx, float gy) const
 

Constructor & Destructor Documentation

◆ CoordFrame() [1/2]

hmap::CoordFrame::CoordFrame ( )

◆ CoordFrame() [2/2]

hmap::CoordFrame::CoordFrame ( glm::vec2  origin,
glm::vec2  size,
float  rotation_angle 
)

Member Function Documentation

◆ get_origin()

glm::vec2 hmap::CoordFrame::get_origin ( ) const
inline

◆ get_size()

glm::vec2 hmap::CoordFrame::get_size ( ) const
inline

◆ get_rotation_angle()

float hmap::CoordFrame::get_rotation_angle ( ) const

◆ set_origin()

void hmap::CoordFrame::set_origin ( glm::vec2  new_origin)
inline

◆ set_size()

void hmap::CoordFrame::set_size ( glm::vec2  new_size)
inline

◆ set_rotation_angle()

void hmap::CoordFrame::set_rotation_angle ( float  new_angle)

◆ compute_bounding_box()

glm::vec4 hmap::CoordFrame::compute_bounding_box ( ) const

◆ get_heightmap_value_bilinear()

float hmap::CoordFrame::get_heightmap_value_bilinear ( const VirtualArray h,
float  gx,
float  gy,
float  fill_value = 0.f 
) const

◆ is_point_within()

bool hmap::CoordFrame::is_point_within ( float  gx,
float  gy 
) const

◆ map_to_global_coords()

glm::vec2 hmap::CoordFrame::map_to_global_coords ( float  rx,
float  ry 
) const

◆ map_to_relative_coords()

glm::vec2 hmap::CoordFrame::map_to_relative_coords ( float  gx,
float  gy 
) const

◆ normalized_distance_to_edges()

float hmap::CoordFrame::normalized_distance_to_edges ( float  gx,
float  gy 
) const

◆ normalized_shape_factor()

float hmap::CoordFrame::normalized_shape_factor ( float  gx,
float  gy 
) const

The documentation for this class was generated from the following files: