Revision: | 416 |
Committed: | Wed Aug 21 15:24:24 2013 UTC (11 years, 8 months ago) by cuillier |
File size: | 424 byte(s) |
Log Message: | Import initial |
# | User | Rev | Content |
---|---|---|---|
1 | cuillier | 416 | #include "segment.h" |
2 | |||
3 | SEGMENT::SEGMENT(double *ori,double *dir,double tb,double te):LINE(ori,dir),t1(tb),t2(te) | ||
4 | { | ||
5 | } | ||
6 | |||
7 | SEGMENT::SEGMENT(SEGMENT &mdd):LINE(mdd),t1(mdd.t1),t2(mdd.t2) | ||
8 | { | ||
9 | } | ||
10 | |||
11 | SEGMENT::~SEGMENT() | ||
12 | { | ||
13 | } | ||
14 | |||
15 | void SEGMENT::evaluer(double t,double *xyz) | ||
16 | { | ||
17 | if (t<t1) return; | ||
18 | if (t>t2) return; | ||
19 | xyz[0]=origine[0]+t*direction[0]; | ||
20 | xyz[1]=origine[1]+t*direction[1]; | ||
21 | xyz[2]=origine[2]+t*direction[2]; | ||
22 | } |
Name | Value |
---|---|
svn:executable |