cgma
AnalyticGeometryTool.cpp File Reference
#include <float.h>
#include "AnalyticGeometryTool.hpp"
#include "CubitMessage.hpp"
#include "CubitBox.hpp"
#include "CubitPlane.hpp"
#include "CubitVector.hpp"
#include "DLIList.hpp"
#include <math.h>
#include "CastTo.hpp"
#include "GfxPreview.hpp"
#include "GMem.hpp"
#include <fstream>

Go to the source code of this file.

Functions

Point2 operator+ (const Point2 &p, const Point2 &q)
Point2 operator- (const Point2 &p, const Point2 &q)
Point2 operator* (double t, const Point2 &p)
Point2 operator* (const Point2 &p, double t)
Point2 operator- (const Point2 &p)
Point3 operator+ (const Point3 &p, const Point3 &q)
Point3 operator- (const Point3 &p, const Point3 &q)
Point3 operator* (double t, const Point3 &p)
Point3 operator* (const Point3 &p, double t)
Point3 operator- (const Point3 &p)

Variables

static double AGT_IDENTITY_MTX_4X4 [4][4]
static double AGT_IDENTITY_MTX_3X3 [3][3]

Function Documentation

Point2 operator* ( double  t,
const Point2 p 
)

Definition at line 57 of file AnalyticGeometryTool.cpp.

{
    Point2 prod;
    prod.x = t*p.x;
    prod.y = t*p.y;
    return prod;
}
Point2 operator* ( const Point2 p,
double  t 
)

Definition at line 65 of file AnalyticGeometryTool.cpp.

{
    Point2 prod;
    prod.x = t*p.x;
    prod.y = t*p.y;
    return prod;
}
Point3 operator* ( double  t,
const Point3 p 
)

Definition at line 104 of file AnalyticGeometryTool.cpp.

{
    Point3 prod;
    prod.x = t*p.x;
    prod.y = t*p.y;
    prod.z = t*p.z;
    return prod;
}
Point3 operator* ( const Point3 p,
double  t 
)

Definition at line 113 of file AnalyticGeometryTool.cpp.

{
    Point3 prod;
    prod.x = t*p.x;
    prod.y = t*p.y;
    prod.z = t*p.z;
    return prod;
}
Point2 operator+ ( const Point2 p,
const Point2 q 
)

Definition at line 41 of file AnalyticGeometryTool.cpp.

{
    Point2 add;
    add.x = p.x + q.x;
    add.y = p.y + q.y;
    return add;
}
Point3 operator+ ( const Point3 p,
const Point3 q 
)

Definition at line 86 of file AnalyticGeometryTool.cpp.

{
    Point3 add;
    add.x = p.x + q.x;
    add.y = p.y + q.y;
    add.z = p.z + q.z;
    return add;
}
Point2 operator- ( const Point2 p,
const Point2 q 
)

Definition at line 49 of file AnalyticGeometryTool.cpp.

{
    Point2 sub;
    sub.x = p.x - q.x;
    sub.y = p.y - q.y;
    return sub;
}
Point2 operator- ( const Point2 p)

Definition at line 73 of file AnalyticGeometryTool.cpp.

{
    Point2 neg;
    neg.x = -p.x;
    neg.y = -p.y;
    return neg;
}
Point3 operator- ( const Point3 p,
const Point3 q 
)

Definition at line 95 of file AnalyticGeometryTool.cpp.

{
    Point3 sub;
    sub.x = p.x - q.x;
    sub.y = p.y - q.y;
    sub.z = p.z - q.z;
    return sub;
}
Point3 operator- ( const Point3 p)

Definition at line 122 of file AnalyticGeometryTool.cpp.

{
    Point3 neg;
    neg.x = -p.x;
    neg.y = -p.y;
    neg.z = -p.z;
    return neg;
}

Variable Documentation

double AGT_IDENTITY_MTX_3X3[3][3] [static]
Initial value:
 { {1.0, 0.0, 0.0},
                                             {0.0, 1.0, 0.0},
                                             {0.0, 0.0, 1.0} }

Definition at line 35 of file AnalyticGeometryTool.cpp.

double AGT_IDENTITY_MTX_4X4[4][4] [static]
Initial value:
 { {1.0, 0.0, 0.0, 0.0},
                                             {0.0, 1.0, 0.0, 0.0},
                                             {0.0, 0.0, 1.0, 0.0},
                                             {0.0, 0.0, 0.0, 1.0} }

Definition at line 30 of file AnalyticGeometryTool.cpp.

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines