Vec.cross

Computes the cross product of this vector and another, and stores the result in this vector.

struct Vec(T, size_t size)
ref @nogc
static if(isFloatingPoint!T && size == 3)
Vec!(T, size)
cross
(
Vec!(T, size) other
)
if (
isNumeric!T &&
size > 0
)

Parameters

other Vec!(T, size)

The other vector.

Return Value

Type: Vec!(T, size)

A reference to this vector, for method chaining.

Meta