Richard Boegli's CnC_Generals_Zero_Hour Fork WIP
This is documentation of Richard Boegil's Zero Hour Fork
 
Loading...
Searching...
No Matches
BezierSegment Class Reference

#include <BezierSegment.h>

Public Member Functions

 BezierSegment ()
 
 BezierSegment (Real x0, Real y0, Real z0, Real x1, Real y1, Real z1, Real x2, Real y2, Real z2, Real x3, Real y3, Real z3)
 
 BezierSegment (Real cp[16])
 
 BezierSegment (const Coord3D &cp0, const Coord3D &cp1, const Coord3D &cp2, const Coord3D &cp3)
 
 BezierSegment (Coord3D cp[4])
 
void evaluateBezSegmentAtT (Real tValue, Coord3D *outResult) const
 
void getSegmentPoints (Int numSegments, VecCoord3D *outResult) const
 
Real getApproximateLength (Real withinTolerance=USUAL_TOLERANCE) const
 
void splitSegmentAtT (Real tValue, BezierSegment &outSeg1, BezierSegment &outSeg2) const
 

Protected Attributes

Coord3D m_controlPoints [4]
 

Static Protected Attributes

static const D3DXMATRIX s_bezBasisMatrix
 

Friends

class BezFwdIterator
 

Detailed Description

Definition at line 39 of file BezierSegment.h.

Constructor & Destructor Documentation

◆ BezierSegment() [1/5]

BezierSegment::BezierSegment ( )

Definition at line 33 of file BezierSegment.cpp.

◆ BezierSegment() [2/5]

BezierSegment::BezierSegment ( Real x0,
Real y0,
Real z0,
Real x1,
Real y1,
Real z1,
Real x2,
Real y2,
Real z2,
Real x3,
Real y3,
Real z3 )

Definition at line 40 of file BezierSegment.cpp.

◆ BezierSegment() [3/5]

BezierSegment::BezierSegment ( Real cp[16])

◆ BezierSegment() [4/5]

BezierSegment::BezierSegment ( const Coord3D & cp0,
const Coord3D & cp1,
const Coord3D & cp2,
const Coord3D & cp3 )

Definition at line 81 of file BezierSegment.cpp.

◆ BezierSegment() [5/5]

BezierSegment::BezierSegment ( Coord3D cp[4])

Definition at line 89 of file BezierSegment.cpp.

Member Function Documentation

◆ evaluateBezSegmentAtT()

void BezierSegment::evaluateBezSegmentAtT ( Real tValue,
Coord3D * outResult ) const

Definition at line 99 of file BezierSegment.cpp.

◆ getApproximateLength()

Real BezierSegment::getApproximateLength ( Real withinTolerance = USUAL_TOLERANCE) const

Definition at line 143 of file BezierSegment.cpp.

◆ getSegmentPoints()

void BezierSegment::getSegmentPoints ( Int numSegments,
VecCoord3D * outResult ) const

Definition at line 120 of file BezierSegment.cpp.

◆ splitSegmentAtT()

void BezierSegment::splitSegmentAtT ( Real tValue,
BezierSegment & outSeg1,
BezierSegment & outSeg2 ) const

Definition at line 190 of file BezierSegment.cpp.

Friends And Related Symbol Documentation

◆ BezFwdIterator

friend class BezFwdIterator
friend

Definition at line 70 of file BezierSegment.h.

Member Data Documentation

◆ m_controlPoints

Coord3D BezierSegment::m_controlPoints[4]
protected

Definition at line 43 of file BezierSegment.h.

◆ s_bezBasisMatrix

const D3DXMATRIX BezierSegment::s_bezBasisMatrix
staticprotected

Definition at line 42 of file BezierSegment.h.


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