The methods were created.
raises OutOfRange
is static;
+ ChangeCoord (me: in out; theIndex : Integer) returns Real
+ ---C++: inline
+ ---C++: return &
+ raises OutOfRange;
+
Coord (me; X, Y : out Real) is static;
---C++: inline
---Purpose: For this number pair, returns its coordinates X and Y.
return (&x)[i-1];
}
+inline Standard_Real& gp_XY::ChangeCoord (const Standard_Integer theIndex)
+{
+ Standard_OutOfRange_Raise_if(theIndex < 1 || theIndex > 2,NULL);
+ return (&x)[theIndex - 1];
+}
+
inline void gp_XY::Coord (Standard_Real& X,
Standard_Real& Y) const
{ X = x; Y = y; }
raises OutOfRange
is static;
+ ChangeCoord (me: in out; theIndex : Integer) returns Real
+ ---C++: inline
+ ---C++: return &
+ raises OutOfRange;
+
+
Coord (me; X, Y, Z : out Real) is static;
---C++: inline
--Purpose: For this XYZ object, returns:
return (&x)[i-1];
}
+inline Standard_Real& gp_XYZ::ChangeCoord(const Standard_Integer theIndex)
+{
+ Standard_OutOfRange_Raise_if(theIndex < 1 || theIndex > 3,NULL);
+ return (&x)[theIndex - 1];
+}
+
inline void gp_XYZ::Coord (Standard_Real& X,
Standard_Real& Y,
Standard_Real& Z) const