HighMap library (C++)
Loading...
Searching...
No Matches
hmap::AffineTransform2D Struct Reference

Lightweight 2D affine transformation mapping (x, y) -> (ax*x + bx*y + cx, ay*x + by*y + cy). More...

#include <coord_frame.hpp>

Public Member Functions

glm::vec2 apply (float x, float y) const

Public Attributes

float ax = 1.f
float bx = 0.f
float cx = 0.f
float ay = 0.f
float by = 1.f
float cy = 0.f

Detailed Description

Lightweight 2D affine transformation mapping (x, y) -> (ax*x + bx*y + cx, ay*x + by*y + cy).

Member Function Documentation

◆ apply()

glm::vec2 hmap::AffineTransform2D::apply ( float x,
float y ) const

Member Data Documentation

◆ ax

float hmap::AffineTransform2D::ax = 1.f

◆ bx

float hmap::AffineTransform2D::bx = 0.f

◆ cx

float hmap::AffineTransform2D::cx = 0.f

◆ ay

float hmap::AffineTransform2D::ay = 0.f

◆ by

float hmap::AffineTransform2D::by = 1.f

◆ cy

float hmap::AffineTransform2D::cy = 0.f

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