1 -- File: Geom_CartesianPoint.cdl
2 -- Created: Wed Mar 10 09:27:52 1993
5 -- Copyright: Matra Datavision 1993
8 class CartesianPoint from Geom inherits Point from Geom
11 ---Purpose : Describes a point in 3D space. A
12 -- Geom_CartesianPoint is defined by a gp_Pnt point,
13 -- with its three Cartesian coordinates X, Y and Z.
24 Create (P : Pnt) returns mutable CartesianPoint;
25 ---Purpose : Returns a transient copy of P.
28 Create (X, Y, Z : Real) returns mutable CartesianPoint;
30 ---Purpose: Constructs a point defined by its three Cartesian coordinates X, Y and Z.
32 SetCoord (me : mutable; X, Y, Z : Real);
33 ---Purpose : Assigns the coordinates X, Y and Z to this point.
36 SetPnt (me : mutable; P : Pnt);
37 ---Purpose : Set <me> to P.X(), P.Y(), P.Z() coordinates.
40 SetX (me : mutable; X : Real);
41 ---Purpose : Changes the X coordinate of me.
44 SetY (me : mutable; Y : Real);
45 ---Purpose : Changes the Y coordinate of me.
48 SetZ (me : mutable; Z : Real);
49 ---Purpose : Changes the Z coordinate of me.
52 Coord (me; X, Y, Z : out Real);
53 ---Purpose : Returns the coordinates of <me>.
58 -- Returns a non transient cartesian point with
59 -- the same coordinates as <me>.
64 ---Purpose : Returns the X coordinate of <me>.
68 ---Purpose : Returns the Y coordinate of <me>.
72 ---Purpose : Returns the Z coordinate of <me>.
76 Transform (me : mutable; T : Trsf);
77 ---Purpose: Applies the transformation T to this point.
79 Copy (me) returns mutable like me;
80 ---Purpose: Creates a new object which is a copy of this point.