Skip to content

dakku::TriangleFilter

triangle filter the weight falls off linearly from the filter center over the square extent of the filter

#include <triangle.h>

Inherits from dakku::Filter

Public Functions

Name
virtual float evaluate(const Point2f & p) const override
Given a 2D point which is relative to the center of the filter, the filter's value at that point is returned.
Filter(const Vector2f & radius)
Construct a new Filter object The filter's overall extent in each direction is twice the value given in radius

Additional inherited members

Public Attributes inherited from dakku::Filter

Name
const Vector2f radius
filter radius
const Vector2f inv_radius
filter radius inversion

Public Functions Documentation

function evaluate

virtual float evaluate(
    const Point2f & p
) const override

Given a 2D point which is relative to the center of the filter, the filter's value at that point is returned.

Parameters:

  • p the given 2D point

Return: float filter's value

Reimplements: dakku::Filter::evaluate

function Filter

explicit Filter(
    const Vector2f & radius
)

Construct a new Filter object The filter's overall extent in each direction is twice the value given in radius

Parameters:

  • radius radius of the filter

Updated on 2022-04-30 at 15:46:11 +0000