Click or drag to resize

VectorD3D Structure

Represents a vector with members of type Double in 3D space.
Inheritance Hierarchy
SystemObject
  SystemValueType
    Altaxo.GeometryVectorD3D

Namespace: Altaxo.Geometry
Assembly: AltaxoCore (in AltaxoCore.dll) Version: 4.8.3448.0 (4.8.3448.0)
Syntax
C#
public struct VectorD3D : IEquatable<VectorD3D>

The VectorD3D type exposes the following members.

Constructors
 NameDescription
Public methodVectorD3D Initializes a new instance of the VectorD3D struct.
Top
Properties
 NameDescription
Public propertyStatic memberEmpty Gets an empty vector (0,0,0).
Public propertyIsEmpty Gets a value indicating whether this instance is empty, i.e. all elements are zero.
Public propertyLength Gets the length of the vector.
Public propertyNormalized Gets the normalized version of this vector (length 1).
Public propertySquareOfLength Gets the squared length of the vector.
Public propertyXGets the x component of this vector.
Public propertyYGets the y component of this vector.
Public propertyZGets the z component of this vector.
Top
Methods
 NameDescription
Public methodStatic memberAngleBetweenInRadians Calculates the angle between two vectors in radians.
Public methodStatic memberCreateNormalized(VectorD3D) Creates a normalized version of the given vector.
Public methodStatic memberCreateNormalized(Double, Double, Double) Creates a normalized vector from the given x, y, and z components.
Public methodStatic memberCreateScaled Creates a scaled version of the given vector.
Public methodStatic memberCreateSum Creates a vector that is the sum of two vectors.
Public methodStatic memberCrossProduct Calculates the cross product of two vectors.
Public methodStatic memberDotProduct Calculates the dot product of two vectors.
Public methodEquals(Object)Indicates whether this instance and a specified object are equal.
(Overrides ValueTypeEquals(Object))
Public methodEquals(VectorD3D)Indicates whether the current object is equal to another object of the same type.
Public methodGetHashCodeReturns the hash code for this instance.
(Overrides ValueTypeGetHashCode)
Public methodGetTypeGets the Type of the current instance.
(Inherited from Object)
Public methodStatic memberMultiplicationElementwise Multiplies two vectors elementwise.
Public methodToStringReturns the fully qualified type name of this instance.
(Overrides ValueTypeToString)
Public methodWithX Returns a new instance with X set to the provided value.
Public methodWithY Returns a new instance with Y set to the provided value.
Public methodWithZ Returns a new instance with Z set to the provided value.
Top
Operators
 NameDescription
Public operatorStatic memberAddition(VectorD3D, VectorD3D) Adds two vectors component-wise.
Public operatorStatic memberDivision(VectorD3D, Double) Divides a vector by a scalar.
Public operatorStatic memberEquality(VectorD3D, VectorD3D) Checks if two vectors are equal.
Public operatorStatic member(PointD3D to VectorD3D) Converts a PointD3D to a VectorD3D.
Public operatorStatic memberInequality(VectorD3D, VectorD3D) Checks if two vectors are not equal.
Public operatorStatic memberMultiply(Double, VectorD3D) Multiplies a scalar by a vector.
Public operatorStatic memberMultiply(VectorD3D, Double) Multiplies a vector by a scalar.
Public operatorStatic memberSubtraction(VectorD3D, VectorD3D) Subtracts two vectors component-wise.
Public operatorStatic memberUnaryNegation(VectorD3D) Negates a vector.
Top
See Also