PCoordinate< T > Class Template Reference
#include <Vector.h>
List of all members.
Detailed Description
template<typename T = int>
class jbxl::PCoordinate< T >
template <typename t="int"> class DllExport PCoordinate
多角形の座標の値を格納するクラス
Definition at line 357 of file Vector.h.
Constructor & Destructor Documentation
Member Function Documentation
void clear |
( |
void |
|
) |
[inline] |
Definition at line 388 of file Vector.h.
00388 {
00389 if (point!=NULL) {
00390 for (int i=0; i<dim; i++) point[i]->set((T)0);
00391 }
00392 }
void free |
( |
void |
|
) |
[inline] |
void init |
( |
int |
n |
) |
[inline] |
Definition at line 371 of file Vector.h.
00371 {
00372 dim = 0;
00373 point = NULL;
00374
00375 if (n>0) {
00376 point = (Vector<T>**)malloc(sizeof(Vector<T>*)*n);
00377 if (point!=NULL) {
00378 dim = n;
00379 for (int i=0; i<dim; i++) point[i] = new Vector<T>();
00380 }
00381 }
00382 }
void set |
( |
int |
m, |
|
|
T |
x, |
|
|
T |
y = 0 , |
|
|
T |
z = 0 , |
|
|
double |
n = 0.0 | |
|
) |
| | [inline] |
Definition at line 384 of file Vector.h.
00384 {
00385 if (m>=0 && m<dim && point!=NULL) point[m]->set(x, y, z, n);
00386 }
Member Data Documentation
The documentation for this class was generated from the following file: