Initializes a new instance of a vector, using its three components.
The X (first) component.
The Y (second) component.
The Z (third) component.
Initializes a new instance of a vector, copying the three components from the three coordinates of a point.
The point to copy from.
Initializes a new instance of a vector, copying the three components from a vector.
A double-precision vector.
Static ReadonlyunsetGets the value of the vector with each component set to RhinoMath.UnsetValue.
Static ReadonlyxGets the value of the vector with components 1,0,0.
Static ReadonlyyGets the value of the vector with components 0,1,0.
Static ReadonlyzGets the value of the vector with components 0,0,1.
Static ReadonlyzeroGets the value of the vector with components 0,0,0.
StaticaddStaticareStaticareStaticareStaticcompareCompares this Vector3d with another Vector3d.
Component evaluation priority is first X, then Y, then Z.
0: if this is identical to other -1: if this.X < other.X -1: if this.X == other.X and this.Y < other.Y -1: if this.X == other.X and this.Y == other.Y and this.Z < other.Z +1: otherwise.
StaticcreateInitializes a new instance of a vector, using its three components.
The X (first) component.
The Y (second) component.
The Z (third) component.
Initializes a new instance of a vector, copying the three components from the three coordinates of a point.
The point to copy from.
Initializes a new instance of a vector, copying the three components from a vector.
A double-precision vector.
StaticcrossComputes the cross product (or vector product, or exterior product) of two vectors.
This operation is not commutative.
A new vector that is perpendicular to both a and b, has Length == a.Length * b.Length * sin(theta) where theta is the angle between a and b. The resulting vector is oriented according to the right hand rule.
StaticdecomposeStaticdivideDivides a Vector3d by a number, having the effect of shrinking it.
(Provided for languages that do not support operator overloading. You can use the / operator otherwise)
A vector.
A number.
A new vector that is component-wise divided by t.
StaticencodeThis object as a JSON-compatible dict (rhino3dm only; inverse: Decode).
A dict of numbers and strings: geometry and other objects are stored as their 3dm archive, base64 encoded, with the archive version.
StaticepsilonStaticequalsStaticisDetermines whether this vector is parallel to another vector, within one degree (within Pi / 180).
Parallel indicator: +1 = both vectors are parallel 0 = vectors are not parallel, or at least one of the vectors is zero -1 = vectors are anti-parallel.
Determines whether this vector is parallel to another vector, within a provided tolerance.
Parallel indicator: +1 = both vectors are parallel. 0 = vectors are not parallel or at least one of the vectors is zero. -1 = vectors are anti-parallel.
StaticisTest to see whether this vector is perpendicular to within one degree of another one.
true if both vectors are perpendicular, false if otherwise.
Determines whether this vector is perpendicular to another vector, within a provided angle tolerance.
true if vectors form Pi-radians (90-degree) angles with each other; otherwise false.
StaticisDetermines whether a vector is very short.
A nonzero value used as the coordinate zero tolerance. .
(Math.Abs(X) <= tiny_tol) AND (Math.Abs(Y) <= tiny_tol) AND (Math.Abs(Z) <= tiny_tol).
Uses RhinoMath.ZeroTolerance for IsTiny calculation.
true if vector is very small, otherwise false.
StaticisGets a value indicating whether or not this is a unit vector. A unit vector has length 1.
StaticisGets a value indicating whether this vector is valid. A valid vector must be formed of valid component values for x, y and z.
StaticisGets a value indicating whether the X, Y, and Z values are all equal to 0.0.
StaticLengthComputes the length (or magnitude, or size) of this vector. This is an application of Pythagoras' theorem. If this vector is invalid, its length is considered 0.
StaticmaximumGets the largest (both positive and negative) component value in this vector, as an absolute value.
StaticminimumGets the smallest (both positive and negative) component value in this vector.
StaticmultiplyMultiplies a vector by a number, having the effect of scaling it.
(Provided for languages that do not support operator overloading. You can use the * operator otherwise)
A vector.
A number.
A new vector that is the original vector coordinate-wise multiplied by t.
Multiplies a vector by a number, having the effect of scaling it.
(Provided for languages that do not support operator overloading. You can use the * operator otherwise)
A number.
A vector.
A new vector that is the original vector coordinate-wise multiplied by t.
Multiplies two vectors together, returning the dot product (or inner product). This differs from the cross product.
(Provided for languages that do not support operator overloading. You can use the * operator otherwise)
A value that results from the evaluation of v1.Xv2.X + v1.Yv2.Y + v1.Z*v2.Z. This value equals v1.Length * v2.Length * cos(alpha), where alpha is the angle between vectors.
StaticnegateComputes the reversed vector.
(Provided for languages that do not support operator overloading. You can use the - unary operator otherwise)
Similar to ReverseReverse(), but static for CLR compliance.
A vector to negate.
A new vector where all components were multiplied by -1.
StaticperpendicularSets this vector to be perpendicular to another vector. Result is not unitized.
true on success, false if input vector is zero or invalid.
Set this vector to be perpendicular to a plane defined by 3 points.
StaticreverseReverses this vector in place (reverses the direction).
If this vector is Invalid, no changes will occur and false will be returned.
Similar to NegateNegate, that is only provided for CLR language compliance.
true on success or false if the vector is invalid.
StaticrotateStaticsquareComputes the squared length (or magnitude, or size) of this vector. This is an application of Pythagoras' theorem. While the Length property checks for input validity, this property does not. You should check validity in advance, if this vector can be invalid.
StaticsubtractStaticToReturns the string representation of the current vector, in the form X,Y,Z.
A string with the current location of the point.
StatictransformStaticunitizeUnitizes the vector in place. A unit vector has length 1 unit.
An invalid or zero length vector cannot be unitized.
true on success or false on failure.
StaticvectorCompute the angle between two vectors.
This operation is commutative.
If the input is valid, the angle (in radians) between a and b; RhinoMath.UnsetValue otherwise.
Computes the angle on a plane between two vectors.
On success, the angle (in radians) between a and b as projected onto the plane; RhinoMath.UnsetValue on failure.
Computes the angle of v1, v2 with a normal vector.
On success, the angle (in radians) between a and b with respect of normal vector; RhinoMath.UnsetValue on failure.
Represents the three components of a vector in three-dimensional space, using
double-precision floating point numbers.