|
|
Vector3 Structure |
Namespace: Karamba.Geometry
The Vector3 type exposes the following members.
| Name | Description | |
|---|---|---|
| Vector3(Vec3d) |
Initializes a new instance of the Vector3 struct.
transform C++-vector into C#-vector.
| |
| Vector3(Point3) |
Initializes a new instance of the Vector3 struct.
Create vector from point.
| |
| Vector3(Vector3) |
Initializes a new instance of the Vector3 struct.
Create vector from vector.
| |
| Vector3(Double, Double, Double) |
Initializes a new instance of the Vector3 struct.
Create vector.
|
| Name | Description | |
|---|---|---|
| IsNaN |
Gets a value indicating whether this vector is NaN vector.
| |
| IsZero |
Gets a value indicating whether this vector is the zero vector.
| |
| Item |
Gets or sets a vector component at the given index.
| |
| Length |
Gets the length of vector.
| |
| NaN |
Gets an NaN vector.
| |
| SquaredLength |
Gets the squared length of vector.
| |
| Unitized |
Gets the normalized vector.
| |
| UnitX |
Gets the x-unit vector (1, 0, 0).
| |
| UnitY |
Gets the y-unit vector (0, 1, 0).
| |
| UnitZ |
Gets the z-unit vector (0, 0, 1).
| |
| X |
Gets or sets the X-coordinate.
| |
| XAxis |
Gets the value of the vector with components 1,0,0.
| |
| Y |
Gets or sets the Y-coordinate.
| |
| YAxis |
Gets the value of the vector with components 0,1,0.
| |
| Z |
Gets or sets the Z-coordinate.
| |
| ZAxis |
Gets the value of the vector with components 0,0,1.
| |
| Zero |
Gets the zero vector.
|
| Name | Description | |
|---|---|---|
| CompareTo |
compares this to other vector based on the distance to the origin.
| |
| Cross |
Get the cross product of two vectors.
| |
| CrossProduct |
Compute cross product.
| |
| Dot |
Compute dot product.
| |
| DotProduct |
Compute dot product.
| |
| Equals(Object) | Indicates whether this instance and a specified object are equal. (Overrides ValueTypeEquals(Object).) | |
| Equals(Vector3) |
check whether another vector is equal to this vector.
| |
| Equals(Vector3, Double) |
check whether another vector is equal to this vector within a given tolerance.
| |
| GetHashCode | Returns the hash code for this instance. (Overrides ValueTypeGetHashCode.) | |
| GetType | Gets the Type of the current instance. (Inherited from Object.) | |
| IsTiny |
Determines whether the vector is small.
| |
| MakePerpendicularTo |
Makes this vector perpendicular to the given vector.
Result is not unitized.
| |
| meanSquaredLength |
Gets the mean squared length of vectors in a list.
| |
| Multiply(Vector3, Vector3) |
Form the dot-product of two vectors.
| |
| Multiply(Vector3, Double) |
multiply a vector by a scalar.
| |
| Normalize |
Returns a vector with the same direction as the given vector, but with a length of 1.
| |
| Reverse |
reverse the direction of a vector.
| |
| Rotate |
Rotates vector by an angle about a given axis.
| |
| ScaleVectors |
Scales the vectors in a list by a given factor and returns the new list.
| |
| ToDeg |
Convert angle in radians to degree.
| |
| ToPoint3 |
Converts to Point3.
| |
| ToRad |
Convert angle in degree to radians.
| |
| ToString | Returns the fully qualified type name of this instance. (Overrides ValueTypeToString.) | |
| Transform(Plane3) |
Transform vector to local coordinate system of given plane.
| |
| Transform(Transform3) |
Transform vector.
| |
| Transform(Vector3, Quaternion) |
Transforms a vector by the given Quaternion rotation value.
| |
| Unitize |
Normalizes a vector.
| |
| VectorAngle |
Compute the angle between two vectors.
This operation is commutative. |
| Name | Description | |
|---|---|---|
| Addition |
Adds two vectors.
| |
| Division |
Divide vector by constant.
| |
| Equality |
Compare vectors for equality.
| |
| ExclusiveOr |
Compute vector cross product.
| |
| GreaterThan |
Compare vectors.
| |
| GreaterThanOrEqual |
Compare vectors.
| |
| Inequality |
Compare vectors for inequality.
| |
| LessThan |
Compare vectors.
| |
| LessThanOrEqual |
Compare vectors.
| |
| Multiply(Double, Vector3) |
Multiply vector by constant.
| |
| Multiply(Vector3, Vector3) |
Multiply vectors (dot product).
| |
| Multiply(Vector3, Double) |
Multiply vector by constant.
| |
| Subtraction |
Subtracts vector b from vector a.
| |
| UnaryNegation |
Negates a vector.
|
| Name | Description | |
|---|---|---|
| Convert |
Converts to Rhino's Vector3d.
(Defined by ToRhino.) | |
| ConvertToFebVec3d | Overloaded.
Converts to Vec3d.
(Defined by ToFeb.) | |
| ConvertToFebVec3d(Boolean) | Overloaded.
Converts to Vec3d.
(Defined by ToFeb.) |