A class that represents 3 dimentional double point precision vectors, as well as the math for it.
| C# | Visual Basic | Visual Basic Usage | Visual C++ | J# | JScript |
public class Vector3D
Public Class Vector3D
Dim instance As Vector3D
public ref class Vector3D
public class Vector3D
public class Vector3D
TenneySoftware.Vectors.Vector3D = function(); Type.createClass( 'TenneySoftware.Vectors.Vector3D');
| All Members | Constructors | Methods | Properties | ||
| Icon | Member | Description |
|---|---|---|
| Vector3D()()() |
Default constructor for Vector3D class.
| |
| Vector3D(Double, Double, Double) |
Constructor for Vector3D class that takes initial parameters.
| |
| Add(Vector3D) |
Adds a vector to the current one.
| |
| Addition(Vector3D, Vector3D) |
Adds two vectors together.
| |
| ConvertToPoint()()() |
Converts the 3D vector to a 2D integer point, doubles are trunicated, Z is dropped.
| |
| ConvertToPoint(Vector3D) |
Converts the 3D vector to a 2D integer point, doubles are trunicated, Z is dropped.
| |
| ConvertToVector2D()()() |
Converts the 3D vector to a 2D vector. Drops Z.
| |
| ConvertToVector2D(Vector3D) |
Converts the 3D vector to a 2D vector. Drops Z.
| |
| CrossProduct(Vector3D) |
Calculates the cross product of two vectors.
| |
| CrossProduct(Vector3D, Vector3D) |
Calculates the cross product of two vectors.
| |
| Distance(Vector3D) |
Caluclates the distance seperating two vectors.
| |
| Distance(Vector3D, Vector3D) |
Calculates the distance seperating two vectors.
| |
| Divide(Double) |
Divides a divisor to the current vector.
| |
| Division(Vector3D, Double) |
Divides a vector by a divisor.
| |
| DotProduct(Vector3D) |
Calculates the dot product of two vectors.
| |
| DotProduct(Vector3D, Vector3D) |
Calculates the dot product of two vectors.
| |
| Equality(Vector3D, Vector3D) |
Compares two vectors to determine if they are equal.
| |
| Equals(Object) |
Compares object to current vector to determine if they are equal.
(Overrides Object.Equals(Object).) | |
| GetHashCode()()() |
Generates a unique code for current vector.
(Overrides Object.GetHashCode()()().) | |
| Inequality(Vector3D, Vector3D) |
Compares two vectors to determine if they are not equal.
| |
| IsEmpty()()() |
Determines if vector is empty, contains X=0, Y=0, Z= 0.
| |
| Magnitude()()() |
Calculates the magnitude, length, norm of a vector.
| |
| Magnitude(Vector3D) |
Calculates the magnitude, length, norm of a vector.
| |
| Multiply(Vector3D, Double) |
Multiplies a vector by a scalar.
| |
| Multiply(Double, Vector3D) |
Multiplies a vector by a scalar.
| |
| Multiply(Double) |
Multiplies a scalar to the current vector.
| |
| Normalize()()() |
Normalizes vector. Determines direction of vector.
| |
| Normalize(Vector3D) |
Normalizes vector. Determines direction of vector.
| |
| Subtract(Vector3D) |
Subracts a vector from the current one.
| |
| Subtraction(Vector3D, Vector3D) |
Subracts two vectors from each other.
| |
| ToString()()() |
Converts the vector to an easy to read string.
(Overrides Object.ToString()()().) | |
| X |
Gets or sets the double point number for the X axis.
| |
| Y |
Gets or sets the double point number for the Y axis.
| |
| Z |
Gets or sets the double point number for the Z axis.
|
| Object | |
| Vector3D | |