sonus::Bezier2D Class Reference

#include <Bezier2D.h>

Inheritance diagram for sonus::Bezier2D:

sonus::Element2D

List of all members.

Public Member Functions

 Bezier2D ()
 Bezier2D (const Bezier2D *b)
 Bezier2D (Vector2D *p0, Vector2D *p1, Vector2D *p2, Vector2D *p3)
 Bezier2D (double p0x, double p0y, double p1x, double p1y, double p2x, double p2y, double p3x, double p3y)
 Bezier2D (double arr[])
char * toString ()

Public Attributes

Vector2D p0
Vector2D p1
Vector2D p2
Vector2D p3


Detailed Description

sonus::Bezier2D

The Bezier2D represents a two dimensional cubic Bezier. The four points can be used in any way, just make sure to use it the same way at every place in your program.

filename: Bezier2D.h

Date:
2008/04/22 19.36
Author:
Alexander Lawrence
Version:
1.0
See also:
sonus::Element2D

Constructor & Destructor Documentation

sonus::Bezier2D::Bezier2D (  ) 

Default Constructor.

sonus::Bezier2D::Bezier2D ( const Bezier2D b  ) 

Copy constructor.

This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.

Parameters:
b The object to be copied

sonus::Bezier2D::Bezier2D ( Vector2D p0,
Vector2D p1,
Vector2D p2,
Vector2D p3 
)

Alternative constructor.

This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.

Parameters:
p0 The first vector.
p1 The second vector.
p2 The third vector.
p3 The fourth vector.

sonus::Bezier2D::Bezier2D ( double  p0x,
double  p0y,
double  p1x,
double  p1y,
double  p2x,
double  p2y,
double  p3x,
double  p3y 
)

Alternative Constructor. Converts double values to Vector2D objects.

This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.

sonus::Bezier2D::Bezier2D ( double  arr[]  ) 

Alternative Constructor. Converts double array to Vector2D objects.

This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.

Parameters:
arr The array to be converted. Must have a length of eight.


Member Function Documentation

char* sonus::Bezier2D::toString (  )  [virtual]

Only for testing and debugging.

Returns:
meta string

Reimplemented from sonus::Element2D.


The documentation for this class was generated from the following file:
Generated on Tue Aug 26 12:26:54 2008 for sonus by  doxygen 1.5.4