What is physical interpretation of point vector ? and why pml net object and PML object gives different value ? example for the same is mentioned below.
PML function:
define function !!getOrientation( !x is string , !y is string , !z is string ) is string
!d = object direction()
!d.ORIGIN = /ZeroOrigin
!d.EAST = !x.real()
!d.NORTH = !y.real()
!d.UP = !z.real()
!pv = object POINTVECTOR(E 0mm N 0mm U 0mm , !d )
!orientation = !pv.PLANE().ORIENTATION
return !orientation.string()
endfunction
PmlNet Function:
public string getOriString(string orientationCoord1 , string orientationCoord2 , string orientationCoord3)
{
DirectionImpl d = new DirectionImpl();
d.East = Convert.ToDouble(orientationCoord1);
d.North = Convert.ToDouble(orientationCoord2);
d.Up = Convert.ToDouble(orientationCoord3);
PointVectorImpl pv = new PointVectorImpl();
PositionImpl p = new PositionImpl();
p.X = 0;
p.Y = 0;
p.Z = 0;
pv.Position = p;
pv.Direction = d;
return pv.Plane().Orientation.ToString();
}
{
DirectionImpl d = new DirectionImpl();
d.East = Convert.ToDouble(orientationCoord1);
d.North = Convert.ToDouble(orientationCoord2);
d.Up = Convert.ToDouble(orientationCoord3);
PointVectorImpl pv = new PointVectorImpl();
PositionImpl p = new PositionImpl();
p.X = 0;
p.Y = 0;
p.Z = 0;
pv.Position = p;
pv.Direction = d;
return pv.Plane().Orientation.ToString();
}
Please explain someone.
Regards,
Shivang Kheradiya.
Shivangatul@gmail.com