mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-04-10 18:51:21 +03: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.
172 lines
4.6 KiB
Plaintext
172 lines
4.6 KiB
Plaintext
-- Created on: 1993-03-10
|
|
-- 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.
|
|
|
|
class VectorWithMagnitude from Geom inherits Vector from Geom
|
|
|
|
---Purpose :
|
|
-- Defines a vector with magnitude.
|
|
-- A vector with magnitude can have a zero length.
|
|
|
|
uses Pnt from gp,
|
|
Trsf from gp,
|
|
Vec from gp,
|
|
Geometry from Geom
|
|
|
|
raises ConstructionError from Standard
|
|
|
|
is
|
|
|
|
Create (V : Vec) returns VectorWithMagnitude;
|
|
---Purpose : Creates a transient copy of V.
|
|
|
|
|
|
Create (X, Y, Z : Real) returns VectorWithMagnitude;
|
|
---Purpose : Creates a vector with three cartesian coordinates.
|
|
|
|
|
|
Create (P1, P2 : Pnt) returns VectorWithMagnitude;
|
|
---Purpose :
|
|
-- Creates a vector from the point P1 to the point P2.
|
|
-- The magnitude of the vector is the distance between P1 and P2
|
|
|
|
|
|
|
|
|
|
SetCoord (me : mutable; X, Y, Z : Real);
|
|
---Purpose : Assigns the values X, Y and Z to the coordinates of this vector.
|
|
|
|
|
|
SetVec (me : mutable; V : Vec);
|
|
--- Purpose : Converts the gp_Vec vector V into this vector.
|
|
|
|
SetX (me : mutable; X : Real);
|
|
---Purpose : Changes the X coordinate of <me>.
|
|
|
|
|
|
SetY (me : mutable; Y : Real);
|
|
---Purpose : Changes the Y coordinate of <me>
|
|
|
|
|
|
SetZ (me : mutable; Z : Real);
|
|
---Purpose : Changes the Z coordinate of <me>.
|
|
|
|
|
|
Magnitude (me) returns Real;
|
|
---Purpose : Returns the magnitude of <me>.
|
|
|
|
|
|
SquareMagnitude (me) returns Real;
|
|
---Purpose : Returns the square magnitude of <me>.
|
|
|
|
|
|
Add (me : mutable; Other : Vector);
|
|
---Purpose :
|
|
-- Adds the Vector Other to <me>.
|
|
|
|
|
|
Added (me; Other : Vector) returns VectorWithMagnitude
|
|
---Purpose :
|
|
-- Adds the vector Other to <me>.
|
|
|
|
is static;
|
|
|
|
|
|
Cross (me : mutable; Other : Vector);
|
|
---Purpose :
|
|
-- Computes the cross product between <me> and Other
|
|
-- <me> ^ Other.
|
|
|
|
|
|
Crossed (me; Other : Vector) returns like me
|
|
---Purpose :
|
|
-- Computes the cross product between <me> and Other
|
|
-- <me> ^ Other. A new vector is returned.
|
|
is static;
|
|
|
|
|
|
CrossCross (me : mutable; V1, V2 : Vector);
|
|
---Purpose :
|
|
-- Computes the triple vector product <me> ^ (V1 ^ V2).
|
|
|
|
|
|
CrossCrossed (me; V1, V2 : Vector) returns like me
|
|
---Purpose :
|
|
-- Computes the triple vector product <me> ^ (V1 ^ V2).
|
|
-- A new vector is returned.
|
|
is static;
|
|
|
|
|
|
Divide (me : mutable; Scalar : Real);
|
|
---Purpose : Divides <me> by a scalar.
|
|
|
|
|
|
Divided (me; Scalar : Real) returns VectorWithMagnitude
|
|
---Purpose :
|
|
-- Divides <me> by a scalar. A new vector is returned.
|
|
is static;
|
|
|
|
|
|
Multiplied (me; Scalar : Real) returns VectorWithMagnitude
|
|
---Purpose :
|
|
-- Computes the product of the vector <me> by a scalar.
|
|
-- A new vector is returned.
|
|
|
|
is static;
|
|
|
|
|
|
Multiply (me : mutable; Scalar : Real);
|
|
---Purpose :
|
|
-- Computes the product of the vector <me> by a scalar.
|
|
|
|
Normalize (me : mutable)
|
|
---Purpose : Normalizes <me>.
|
|
raises ConstructionError;
|
|
---Purpose :
|
|
-- Raised if the magnitude of the vector is lower or equal to
|
|
-- Resolution from package gp.
|
|
|
|
|
|
Normalized (me) returns VectorWithMagnitude
|
|
---Purpose : Returns a copy of <me> Normalized.
|
|
raises ConstructionError
|
|
---Purpose :
|
|
-- Raised if the magnitude of the vector is lower or equal to
|
|
-- Resolution from package gp.
|
|
is static;
|
|
|
|
|
|
Subtract (me : mutable; Other : Vector);
|
|
---Purpose : Subtracts the Vector Other to <me>.
|
|
|
|
|
|
Subtracted (me; Other : Vector) returns VectorWithMagnitude
|
|
---Purpose :
|
|
-- Subtracts the vector Other to <me>. A new vector is returned.
|
|
|
|
is static;
|
|
|
|
|
|
|
|
Transform (me: mutable; T : Trsf);
|
|
|
|
---Purpose: Applies the transformation T to this vector.
|
|
|
|
|
|
Copy (me) returns like me;
|
|
---Purpose: Creates a new object which is a copy of this vector.
|
|
|
|
end;
|