Vector3d Class

A class that represents a vector in 3d space.
Public Class Vector3d
This language is not supported or no code example is available.
public class Vector3d
This language is not supported or no code example is available.
public ref class Vector3d 
This language is not supported or no code example is available.
public class Vector3d
This language is not supported or no code example is available.
Name Description
Public constructor Vector3d() Creates a vector of zero length.
Public constructor Vector3d(Point3d, Point3d)
Public constructor Vector3d(Vector3d) Copy constructor.
Public constructor Vector3d(double, double, double) Creates a vector with specified x,y,z components.
Top
Name Description
Public property Item(int)
Public property Length Gets or sets the length of the vector.
Public property Static NegZAxis
Public property Normalized
Public property SquaredLength Computes the squared length of the vector, which is faster than computing its length.
Public property Static XAxis
Public property Static YAxis
Public property Static ZAxis
Top
Methods
 
Name Description
Public method Angle(Vector3d) Computes the inner angle between this vector and another
Public method Bisector(Vector3d) Computes the vector that is the bisector of this and another vector. The length of the result is undefined. If any of the two input vectors has zero length, the result is the other input vector.
Public method Cross(Vector3d)
Public method DiffrentialAngle(Vector3d, Vector3d) Returns the signed angle in range (-PI,PI) from this vector to vector v, in the plane that has 'normal' as normal. The normal is needed because we dont know which side of the plane defined by the vectors that is frontside. 'normal' does not need to be normalized.
Public method DirectionalWith(Vector3d, double)
Public method DistanceToXYPlane(double)
Public method Dot(Vector3d) Computes the dot product between this vector and another. If the vectors are normalized this is the same as cosine of the smallest angle between vectors.
Public method Equals(Vector3d, double)
Public method Equals(object) Determines whether the specified object is equal to the current object.
Public method GetHashCode() Serves as the default hash function.
Public method GetRotated(double, Vector3d, bool) Returns a copy of this vector rotated with `angle` radians over `axis`.
Public method Interpolate(Vector3d, double)
Public method Static Normalize(Vector3d)
Public method Normalize() Modifies the vector in-place to have unit length.
Public method ParallelWith(Vector3d)
Public method RotateX(double) Rotates this vector in-place around x axis
Public method RotateY(double) Rotates this vector in-place around y axis
Public method RotateZ(double) Rotates this vector in-place around the z axis.
Public method Set(double, double, double)
Public method ToPoint()
Public method ToString() Creates a string representation of the vector suitable for debugging.
Public method Transform(Matrix3d)
Public method Transform(Quaternion3d)
Public method TryGetNormalized(out Vector3d)
Top
Name Description
Operator Static Addition
Operator Static Addition
Operator Static Addition
Operator Static Division
Operator Static Division
Operator Static Division
Operator Static Equality
Operator Static GreaterThan
Operator Static Inequality
Operator Static LessThan
Operator Static Multiply Multiplies the length of the vector with a factor (scales it)
Operator Static Multiply
Operator Static Multiply Multiplies the length of the vector with a factor (scales it)
Operator Static Subtraction
Operator Static Subtraction
Operator Static Subtraction
Operator Static UnaryNegation
Top
Fields
 
Name Description
Public field x The x component of the vector left public for fast access.
Public field y The y component of the vector left public for fast access.
Public field z The z component of the vector left public for fast access.
Top
IGS.Genamo.Vector3d

.NET Framework

Supported in: 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8

In this article

Definition