Click or drag to resize

Vector3 Structure

3 dimensional vector of doubles.

Namespace:  Karamba.Geometry
Assembly:  KarambaCommon (in KarambaCommon.dll) Version: 1.0.0.0 (1.0.0.0)
Syntax
[SerializableAttribute]
public struct Vector3 : IEquatable<Vector3>, 
	IComparable<Vector3>

The Vector3 type exposes the following members.

Constructors
  NameDescription
Public methodVector3(Vec3d)
transform C++-vector into C#-vector
Public methodVector3(Point3)
Create vector from point.
Public methodVector3(Vector3)
Create vector from vector.
Public methodVector3(Double, Double, Double)
Create vector.
Top
Properties
  NameDescription
Public propertyIsZero
Determine whether this vector is the zero vector.
Public propertyItem
Gets or sets a vector component at the given index.
Public propertyLength
Get length of vector.
Public propertySquaredLength
Get length of vector.
Public propertySquareLength
Get squared length of vector.
Public propertyUnitized
Get normalized vector.
Public propertyStatic memberUnitX
Get x-unit vector (1, 0, 0).
Public propertyStatic memberUnitY
Get y-unit vector (0, 1, 0).
Public propertyStatic memberUnitZ
Get z-unit vector (0, 0, 1).
Public propertyX
X coordinate.
Public propertyStatic memberXAxis
Gets the value of the vector with components 1,0,0.
Public propertyY
Y coordinate.
Public propertyStatic memberYAxis
Gets the value of the vector with components 0,1,0.
Public propertyZ
Z coordinate.
Public propertyStatic memberZAxis
Gets the value of the vector with components 0,0,1.
Public propertyStatic memberZero
Get zero vector.
Top
Methods
  NameDescription
Public methodCompareTo
compares this to other vector based on the distance to the origin
Public methodStatic memberCross
cross product of two vectors
Public methodStatic memberCrossProduct
Compute cross product.
Public methodStatic memberDot
Compute dot product.
Public methodStatic memberDotProduct
Compute dot product.
Public methodEquals(Object)
Indicates whether this instance and a specified object are equal.
(Overrides ValueTypeEquals(Object).)
Public methodEquals(Vector3)
check whether another vector is equal to this vector
Public methodGetHashCode
Returns the hash code for this instance.
(Overrides ValueTypeGetHashCode.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Public methodIsTiny
Determine whether the vector is small.
Public methodMakePerpendicularTo
Makes this vector perpendicular to the given vector. Result is not unitized.
Public methodStatic membermeanSquaredLength
return the mean squared length of vectors in a list
Public methodStatic memberMultiply(Vector3, Vector3)
form the dot-product of two vectors
Public methodStatic memberMultiply(Vector3, Double)
multiply a vector by a scalar
Public methodStatic memberNormalize
Returns a vector with the same direction as the given vector, but with a length of 1.
Public methodReverse
reverse the direction of a vector
Public methodRotate
rotate vector by an angle about a given axis
Public methodStatic memberScaleVectors
scale the vectors in a list by a given factor and return the new list
Public methodToString
Returns the fully qualified type name of this instance.
(Overrides ValueTypeToString.)
Public methodTransform(Transform3)
Transform vector.
Public methodStatic memberTransform(Vector3, Quaternion)
Transforms a vector by the given Quaternion rotation value.
Public methodUnitize
Normalize vector.
Public methodStatic memberVectorAngle
Compute the angle between two vectors.

This operation is commutative.

Top
Operators
  NameDescription
Public operatorStatic memberAddition
Add vector.
Public operatorStatic memberDivision
Divide vector by constant.
Public operatorStatic memberEquality
Compare vectors.
Public operatorStatic memberExclusiveOr
Compute vector cross product.
Public operatorStatic memberGreaterThan
Compare vectors.
Public operatorStatic memberInequality
Compare vectors.
Public operatorStatic memberLessThan
Compare vectors.
Public operatorStatic memberMultiply(Double, Vector3)
Multiply vector by constant.
Public operatorStatic memberMultiply(Vector3, Vector3)
Multiply vectors (dot product).
Public operatorStatic memberMultiply(Vector3, Double)
Multiply vector by constant.
Public operatorStatic memberSubtraction
Subtract vector.
Public operatorStatic memberUnaryNegation
Invert vector.
Top
Extension Methods
  NameDescription
Public Extension MethodConvert
Convert karamba vector to rhino vector.
(Defined by GeometryExtensions.)
Top
See Also