#include <coord_frame.hpp>
|
| CoordFrame () |
|
| CoordFrame (Vec2< float > origin, Vec2< float > size, float rotation_angle) |
|
Vec2< float > | get_origin () const |
|
Vec2< float > | get_size () const |
|
float | get_rotation_angle () const |
|
void | set_origin (Vec2< float > new_origin) |
|
void | set_size (Vec2< float > new_size) |
|
void | set_rotation_angle (float new_angle) |
|
Vec4< float > | compute_bounding_box () const |
|
float | get_heightmap_value_bilinear (const Heightmap &h, float gx, float gy, float fill_value=0.f) const |
|
float | get_heightmap_value_nearest (const Heightmap &h, float gx, float gy, float fill_value=0.f) const |
|
bool | is_point_within (float gx, float gy) const |
|
Vec2< float > | map_to_global_coords (float rx, float ry) const |
|
Vec2< float > | 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 |
|
◆ CoordFrame() [1/2]
hmap::CoordFrame::CoordFrame |
( |
| ) |
|
◆ CoordFrame() [2/2]
hmap::CoordFrame::CoordFrame |
( |
Vec2< float > |
origin, |
|
|
Vec2< float > |
size, |
|
|
float |
rotation_angle |
|
) |
| |
◆ get_origin()
Vec2< float > hmap::CoordFrame::get_origin |
( |
| ) |
const |
|
inline |
◆ get_size()
Vec2< float > hmap::CoordFrame::get_size |
( |
| ) |
const |
|
inline |
◆ get_rotation_angle()
float hmap::CoordFrame::get_rotation_angle |
( |
| ) |
const |
◆ set_origin()
void hmap::CoordFrame::set_origin |
( |
Vec2< float > |
new_origin | ) |
|
|
inline |
◆ set_size()
void hmap::CoordFrame::set_size |
( |
Vec2< float > |
new_size | ) |
|
|
inline |
◆ set_rotation_angle()
void hmap::CoordFrame::set_rotation_angle |
( |
float |
new_angle | ) |
|
◆ compute_bounding_box()
Vec4< float > hmap::CoordFrame::compute_bounding_box |
( |
| ) |
const |
◆ get_heightmap_value_bilinear()
float hmap::CoordFrame::get_heightmap_value_bilinear |
( |
const Heightmap & |
h, |
|
|
float |
gx, |
|
|
float |
gy, |
|
|
float |
fill_value = 0.f |
|
) |
| const |
◆ get_heightmap_value_nearest()
float hmap::CoordFrame::get_heightmap_value_nearest |
( |
const Heightmap & |
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()
Vec2< float > hmap::CoordFrame::map_to_global_coords |
( |
float |
rx, |
|
|
float |
ry |
|
) |
| const |
◆ map_to_relative_coords()
Vec2< float > 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: