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.
StaticaddSums up two vectors.
(Provided for languages that do not support operator overloading. You can use the + operator otherwise)
A new vector that results from the component-wise addition of the two vectors.
Sums up a point and a vector, and returns a new point.
(Provided for languages that do not support operator overloading. You can use the + operator otherwise)
A new point that results from the addition of point and vector.
StaticcompareCompares this Vector3f with another Vector3f.
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.
StaticcreateStaticcrossComputes 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 and with a result that is oriented following the right hand rule.
StaticdivideDivides a Vector3f by a number, having the effect of shrinking it, t times.
(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.
StaticepsilonStaticequalsStaticisGets a value indicating whether or not this is a unit vector. A unit vector has length 1.
StaticisReturns an indication regarding the validity of this vector.
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.
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 Vector3f together, returning the dot (internal) product of the two. This is not the cross product.
(Provided for languages that do not support operator overloading. You can use the * operator otherwise)
A value that results from the coordinate-wise multiplication of point1 and point2.
StaticnegateComputes the reversed vector.
(Provided for languages that do not support operator overloading. You can use the - unary operator otherwise)
This is similar to ReverseReverse(), but is static for CLR compliance, and with default name.
A vector to negate.
A new vector where all components were multiplied by -1.
StaticperpendicularStaticreverseReverses this vector in place (reverses the direction).
If this vector contains RhinoMath.UnsetValue, the reverse will also be invalid 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.
StaticrotateStaticsquareReturns the square length of the vector. This property does not check for the validity of the inputs.
StaticsubtractStaticToConstructs the string representation of the current vector.
The vector representation in the form X,Y,Z.
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.
Represents the three components of a vector in three-dimensional space, using
Single-precision floating point numbers.