mirror of
https://github.com/Open-Cascade-SAS/OCCT.git
synced 2026-05-25 09:07:26 +08:00
Redundant keyword 'mutable' removed in CDL files. In IGESConvGeom_GeomBuilder, unused methods MakeXY() and MakeXYZ() removed. Method StepAP214_AutoDesignGroupAssignment::Init() replicating same method of the base class is removed as it causes CDL extraction error after above (seemingly irrelevant) changes.
94 lines
2.6 KiB
Plaintext
94 lines
2.6 KiB
Plaintext
-- Created on: 1993-03-24
|
|
-- Created by: JCV
|
|
-- Copyright (c) 1993-1999 Matra Datavision
|
|
-- Copyright (c) 1999-2014 OPEN CASCADE SAS
|
|
--
|
|
-- This file is part of Open CASCADE Technology software library.
|
|
--
|
|
-- This library is free software; you can redistribute it and/or modify it under
|
|
-- the terms of the GNU Lesser General Public License version 2.1 as published
|
|
-- by the Free Software Foundation, with special exception defined in the file
|
|
-- OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT
|
|
-- distribution for complete text of the license and disclaimer of any warranty.
|
|
--
|
|
-- Alternatively, this file may be used under the terms of Open CASCADE
|
|
-- commercial license or contractual agreement.
|
|
|
|
deferred class Vector from Geom2d inherits Geometry from Geom2d
|
|
|
|
--- Purpose : The abstract class Vector describes the common
|
|
-- behavior of vectors in 2D space.
|
|
-- The Geom2d package provides two concrete
|
|
-- classes of vectors: Geom2d_Direction (unit vector)
|
|
-- and Geom2d_VectorWithMagnitude.
|
|
|
|
uses Ax2d from gp,
|
|
Pnt2d from gp,
|
|
Vec2d from gp
|
|
|
|
raises DomainError from Standard,
|
|
VectorWithNullMagnitude from gp
|
|
|
|
is
|
|
|
|
|
|
Reverse (me : mutable);
|
|
--- Purpose : Reverses the vector <me>.
|
|
|
|
|
|
Reversed (me) returns like me
|
|
--- Purpose : Returns a copy of <me> reversed.
|
|
is static;
|
|
|
|
|
|
Angle (me; Other : Vector) returns Real
|
|
--- Purpose : Computes the angular value, in radians, between this
|
|
-- vector and vector Other. The result is a value
|
|
-- between -Pi and Pi. The orientation is from this
|
|
-- vector to vector Other.
|
|
-- Raises VectorWithNullMagnitude if one of the two vectors is a vector with
|
|
-- null magnitude because the angular value is indefinite.
|
|
raises VectorWithNullMagnitude;
|
|
|
|
Coord (me; X, Y : out Real);
|
|
--- Purpose : Returns the coordinates of <me>.
|
|
|
|
|
|
Magnitude (me) returns Real
|
|
--- Purpose : Returns the Magnitude of <me>.
|
|
is deferred;
|
|
|
|
|
|
SquareMagnitude (me) returns Real
|
|
--- Purpose : Returns the square magnitude of <me>.
|
|
is deferred;
|
|
|
|
|
|
X (me) returns Real;
|
|
--- Purpose : Returns the X coordinate of <me>.
|
|
|
|
|
|
Y (me) returns Real;
|
|
--- Purpose : Returns the Y coordinate of <me>.
|
|
|
|
|
|
Crossed (me; Other : Vector) returns Real
|
|
--- Purpose : Cross product of <me> with the vector <Other>.
|
|
is deferred;
|
|
|
|
|
|
Dot (me; Other : Vector) returns Real;
|
|
--- Purpose : Returns the scalar product of 2 Vectors.
|
|
|
|
|
|
Vec2d (me) returns Vec2d;
|
|
--- Purpose : Returns a non persistent copy of <me>.
|
|
|
|
|
|
|
|
fields
|
|
|
|
gpVec2d : Vec2d is protected;
|
|
|
|
end;
|