A self-contained double precision 3D vector used by the 3D fluid simulation engine FluidEngine3D. This type mirrors the shape of the 2D Vector2 so that the SPH pipeline can be ported into three dimensions with minimal changes.
Vector3
01 Syntax
Microsoft.VisualBasic.Imaging.Physics.Vector3
02 Methods
| Name | Overloads | Summary |
|---|---|---|
| Normalize | 1 | Returns the unit vector, a zero length vector returns the zero vector. |
| Dot | 1 | The dot product of two 3d vectors. |
| Cross | 1 | The cross product of two 3d vectors. |
| Random | 1 | Generate a random point that located inside the given box volume. |
| op_Multiply | 1 | component-wise multiplication of two vectors. |
| ToString | 1 | |
| Clone | 1 | |
| op_Addition | 1 | |
| op_Subtraction | 1 | |
| op_UnaryNegation | 1 | |
| op_Division | 1 |
03 Properties
04 Fields
05 Members
Normalize
Returns the unit vector, a zero length vector returns the zero vector.
The dot product of two 3d vectors.
The cross product of two 3d vectors.
Random(Vector3)
Generate a random point that located inside the given box volume.
component-wise multiplication of two vectors.
Magnitude
The euclidean length (magnitude) of this vector.
Field(
Int32)index based access to the three vector components: 0=x, 1=y, 2=z.
x
y
z
Zero
One
ToString()
Clone()
op_UnaryNegation(Vector3)
op_Division(Vector3,
Double)