ZFFramework
 
Loading...
Searching...
No Matches
ZFBezier Class Reference

curve More...

#include <ZFBezier.h>

Public Member Functions

 ZFBezier (void)
 construct a linear curve
 
 ZFBezier (const ZFBezier &ref)
 construct from another curve
 
 ZFBezier (zffloat p0x, zffloat p0y, zffloat p1x, zffloat p1y)
 construct with control point
 
ZFBeziercontrolPoint (zffloat p0x, zffloat p0y, zffloat p1x, zffloat p1y)
 change control point
 
zffloat y_by_t (zffloat t) const
 solve y with given t
 
zffloat y_by_x (zffloat x) const
 solve y with given x
 
zffloat x_by_t (zffloat t) const
 solve x with given t
 
zffloat x_by_y (zffloat y) const
 solve x with given y
 
zffloat t_by_x (zffloat x) const
 solve t with given x
 
zffloat t_by_y (zffloat y) const
 solve t with given y
 

Public Attributes

zffloat p0x
 control point
 
zffloat p0y
 control point
 
zffloat p1x
 control point
 
zffloat p1y
 control point
 

Detailed Description

curve

Member Function Documentation

◆ y_by_t()

zffloat ZFBezier::y_by_t ( zffloat t) const

solve y with given t

t must in range [0, 1]

◆ y_by_x()

zffloat ZFBezier::y_by_x ( zffloat x) const

solve y with given x

value would be invalid if out of range [0, 1]

◆ x_by_t()

zffloat ZFBezier::x_by_t ( zffloat t) const

solve x with given t

t must in range [0, 1]

◆ x_by_y()

zffloat ZFBezier::x_by_y ( zffloat y) const

solve x with given y

value would be invalid if out of range [0, 1]

◆ t_by_x()

zffloat ZFBezier::t_by_x ( zffloat x) const

solve t with given x

value would be invalid if out of range [0, 1]

◆ t_by_y()

zffloat ZFBezier::t_by_y ( zffloat y) const

solve t with given y

value would be invalid if out of range [0, 1]


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