ViewVC Help
View File | Revision Log | Show Annotations | View Changeset | Root Listing
root/REPOS_ERICCA/polyexemple/src/line.cpp
Revision: 416
Committed: Wed Aug 21 15:24:24 2013 UTC (11 years, 8 months ago) by cuillier
File size: 616 byte(s)
Log Message:
Import initial

File Contents

# Content
1 #include "line.h"
2
3 LINE::LINE(double *ori,double *dir):CURVE()
4 {
5 origine[0]=ori[0];
6 origine[1]=ori[1];
7 origine[2]=ori[2];
8 direction[0]=dir[0];
9 direction[1]=dir[1];
10 direction[2]=dir[2];
11 }
12
13
14 LINE::LINE(LINE &mdd):CURVE(mdd)
15 {
16 origine[0]=mdd.origine[0];
17 origine[1]=mdd.origine[1];
18 origine[2]=mdd.origine[2];
19 direction[0]=mdd.direction[0];
20 direction[1]=mdd.direction[1];
21 direction[2]=mdd.direction[2];
22 }
23
24 LINE::~LINE()
25 {
26 }
27
28 void LINE::evaluer(double t,double *xyz)
29 {
30 xyz[0]=origine[0]+t*direction[0];
31 xyz[1]=origine[1]+t*direction[1];
32 xyz[2]=origine[2]+t*direction[2];
33 }

Properties

Name Value
svn:executable