The Vec3 type exposes the following members.
Constructors
| Name | Description | |
|---|---|---|
| Vec3()()()() |
Initializes a new instance of the vec3 class
| |
| Vec3(array<Single>[]()[][]) |
Initializes a new instance of the vec3 class
| |
| Vec3(Single, Single) |
Initializes a new instance of the vec3 class
| |
| Vec3(Single, Single, Single) |
Initializes a new instance of the vec3 class
|
Methods
| Name | Description | |
|---|---|---|
| Cross |
Calculates the cross product of two Vec3
| |
| dist |
Returns the length of the difference vector
| |
| dist2 |
Returns the Norm of the difference vector
| |
| Dot |
Calculates the dot product
| |
| Equals | (Inherited from Object.) | |
| Finalize |
Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection.
(Inherited from Object.) | |
| GetHashCode |
Serves as a hash function for a particular type.
(Inherited from Object.) | |
| GetType |
Gets the Type of the current instance.
(Inherited from Object.) | |
| Length |
Returns the length of the Vec3
| |
| Length2 |
Calculates the length of the vector projected to the XY-Plane
| |
| MemberwiseClone |
Creates a shallow copy of the current Object.
(Inherited from Object.) | |
| Norm |
Returns the norm of the Vec3
| |
| Normalize |
Normalizes the Vec3
| |
Prints the Vec3 to the console
| ||
| ToString | (Overrides Object..::..ToString()()()().) |
Operators
| Name | Description | |
|---|---|---|
| Addition |
Add operator for two Vec3
| |
| Division |
Division for a Vec3 and a skalar
| |
| Equality |
Equal operation for Vec3
| |
| Inequality |
Unqual operation for Vec3
| |
| Multiply |
Multiplikation for a Vec3 and a skalar
| |
| Subtraction |
Subtract operator for two Vec3
| |
| UnaryNegation |
Negate operation for a Vec3
|
Properties
| Name | Description | |
|---|---|---|
| Item |
Index operator
|