Core 1.0
Taper2 Class Reference

Tapering deformation performed in a disc. More...

#include <taper.h>

Public Member Functions

 Taper2 (const Disc2 &, const double &, const double &)
 Creates a tapering operator.
 
 ~Taper2 ()
 Empty.
 
Box2 GetBox () const
 Compute the bounding box of the warping domain.
 
Vector2 Warp (const Vector2 &) const
 Warping function.
 

Protected Attributes

Disc2 disc
 Reference tapering circle.
 
double r = 1.0
 Falloff radius.
 
double a = 1.0
 Tapering coefficient.
 

Detailed Description

Tapering deformation performed in a disc.

The tapering function is defined by a cubic.

Constructor & Destructor Documentation

◆ Taper2()

Taper2::Taper2 ( const Disc2 & d,
const double & r,
const double & a )
explicit

Creates a tapering operator.

Parameters
dDisc.
rRadius.
aTapering coefficient.

Member Function Documentation

◆ Warp()

Vector2 Taper2::Warp ( const Vector2 & p) const

Warping function.

Parameters
pPoint.