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

DiskFunction (x, y) function class. More...

#include <functions.hpp>

Public Member Functions

float operator() (float x, float y, float ctrl_param=0.f) const
 DiskFunction (float radius, float slope, glm::vec2 center)
 Construct a new Disk Function object.

Protected Attributes

float radius
 Radius of the disk.
float slope
 Slope of the disk.
glm::vec2 center
 Primitive reference center.

Detailed Description

DiskFunction (x, y) function class.

Constructor & Destructor Documentation

◆ DiskFunction()

hmap::DiskFunction::DiskFunction ( float radius,
float slope,
glm::vec2 center )

Construct a new Disk Function object.

Parameters
radiusRadius of the disk (with respect to a unit domain).
slopeSide slope (with respect to a unit domain).
centerPrimitive reference center.

Member Function Documentation

◆ operator()()

float hmap::DiskFunction::operator() ( float x,
float y,
float ctrl_param = 0.f ) const

Member Data Documentation

◆ radius

float hmap::DiskFunction::radius
protected

Radius of the disk.

◆ slope

float hmap::DiskFunction::slope
protected

Slope of the disk.

◆ center

glm::vec2 hmap::DiskFunction::center
protected

Primitive reference center.


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