blob: 65af0414f77939783532570f74b39ea834109dac (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
|
//--------------------------------------------------------------------
//
// File Name : IGESGeom_Direction.cxx
// Date :
// Author : CKY / Contract Toubro-Larsen
// Copyright : MATRA-DATAVISION 1993
//
//--------------------------------------------------------------------
#include <IGESGeom_Direction.ixx>
#include <gp_GTrsf.hxx>
IGESGeom_Direction::IGESGeom_Direction () { }
void IGESGeom_Direction::Init
(const gp_XYZ& aDirection)
{
theDirection = aDirection;
InitTypeAndForm(123,0);
}
gp_Vec IGESGeom_Direction::Value () const
{
gp_Vec direction(theDirection);
return direction;
}
gp_Vec IGESGeom_Direction::TransformedValue () const
{
if (!HasTransf()) return gp_Vec(theDirection);
gp_XYZ xyz (theDirection);
gp_GTrsf loc = Location();
loc.SetTranslationPart(gp_XYZ(0.,0.,0.));
loc.Transforms(xyz);
return gp_Vec(xyz);
}
|