Shapes 3D  3.0
 All Classes Functions Variables Pages
shapes3d.contour.LinearScale Class Reference
Inheritance diagram for shapes3d.contour.LinearScale:

Public Member Functions

 LinearScale ()
 
 LinearScale (float sx0, float sx1, float sy0, float sy1)
 
float scaleX (float t)
 
float scaleY (float t)
 

Constructor & Destructor Documentation

shapes3d.contour.LinearScale.LinearScale ( )

This provides a 1:1 scaler in both X & Y axes. Effectively it does nothing.

shapes3d.contour.LinearScale.LinearScale ( float  sx0,
float  sx1,
float  sy0,
float  sy1 
)

Apply a linear scale to the cross-section along the path of the shape.

Parameters
sx0start scale along x axis (t = 0)
sx1end scale along x axis (t = 1)
sy0start scale along y axis (t = 0)
sy1end scale along y axis (t = 1)

Member Function Documentation

float shapes3d.contour.LinearScale.scaleX ( float  t)
Parameters
tin the range ≥0 and ≤1
Returns
returns the scale factor in the x direction

Implements shapes3d.contour.Scale.

float shapes3d.contour.LinearScale.scaleY ( float  t)
Parameters
tin the range ≥0 and ≤1
Returns
returns the scale factor in the y direction

Implements shapes3d.contour.Scale.


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