Operator operator *

operator *(Vector3D, Vector3D)

Returns the cross product of the given vectors

Declaration
public static Vector3D operator *(Vector3D v1, Vector3D v2)
Parameters
Type Name Description
Vector3D v1

The first vector

Vector3D v2

The second vector

Returns
Type Description
Vector3D

Cross product of the two vectors

operator *(Vector3D, double)

Returns the result of scalar multiplication of the given vector and a number

Declaration
public static Vector3D operator *(Vector3D v, double value)
Parameters
Type Name Description
Vector3D v

The vector to multiply

double value

The value to multiply the vector by

Returns
Type Description
Vector3D

Scalar multiplication of the given vector and number

operator *(double, Vector3D)

Returns the result of scalar multiplication of the given number and a vector

Declaration
public static Vector3D operator *(double value, Vector3D v)
Parameters
Type Name Description
double value

The value to multiply the vector by

Vector3D v

The vector to multiply

Returns
Type Description
Vector3D

Scalar multiplication of the given number and vector

Was this helpful?
The feedback you give here is not visible to other users. We use your comments to improve the content.
Previous
Next