Tekla Open API

Detailed and full API reference helps you master Tekla Open API

This is the most recent version of Tekla Open API.
For older versions, please visit Tekla Warehouse.

Vector Class

The Vector class defines a direction and magnitude from the current origin.
Inheritance Hierarchy

Namespace:  Tekla.Structures.Geometry3d
Assembly:  Tekla.Structures (in Tekla.Structures.dll) Version: 2018.1.0.0 (2018.1.0.0)
Syntax
[SerializableAttribute]
public class Vector : Point

The Vector type exposes the following members.

Constructors
  Name Description
Public method Vector
Instantiates a zero length vector.
Public method Vector(Point)
Instatiates a new vector with the given point.
Public method Vector(Double, Double, Double)
Instantiates a vector with the given coordinates.
Top
Methods
  Name Description
Public method CompareTo
Compares two points. To use binarysearch somekind of sorting should be used.
(Inherited from Point.)
Public method Cross(Vector)
Returns a new cross product vector of the current vector and the given vector.
Public methodStatic member Cross(Vector, Vector)
Returns a new cross product vector of the given two vectors.
Public method Dot(Vector)
Returns a dot product of the current vector and the given vector.
Public methodStatic member Dot(Vector, Vector)
Returns a dot product of the given two vectors.
Public method Equals
Returns true if the current object and the given object are equal.
(Inherited from Point.)
Public method GetAngleBetween
Gets the angle (in radians) between the current vector and the given vector.
Public method GetHashCode
Returns a hash code for the point. Notice, in extremely rare cases, you might not get the same hash code for two points even though they are considered equal! This should, however, happen only in extremely rare cases!
(Inherited from Point.)
Public method GetLength
Gets the length (magnitude) of a vector.
Public method GetNormal
Returns a new normalized equivalent of the current vector.
Public method Normalize
Normalizes the vector using the length 1.0 (the length of a unit vector).
Public method Normalize(Double)
Normalizes the vector using the given length.
Public method ToString
Formats the 3D vector into a string with fixed decimals, in the following way: "(X, Y, Z)".
(Overrides PointToString.)
Public method Translate
Translates the point using the given vector.
(Inherited from Point.)
Public method Zero
Zeros all the members of the point.
(Inherited from Point.)
Top
Operators
  Name Description
Public operatorStatic member Multiply(Double, Vector)
Calculates the multiplication of the given vector with the given scalar.
Public operatorStatic member Multiply(Vector, Double)
Calculates the multiplication of the given vector with the given scalar.
Top
Fields
  Name Description
Public field X
The X-coordinate of the point.
(Inherited from Point.)
Public field Y
The Y-coordinate of the point.
(Inherited from Point.)
Public field Z
The Z-coordinate of the point.
(Inherited from Point.)
Top
See Also