MCPcopy Create free account
hub / github.com/CytopiaTeam/Cytopia / operator/

Method operator/

external/as_add_on/scriptmath/scriptmathcomplex.cpp:101–107  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

99}
100
101Complex Complex::operator/(const Complex &other) const
102{
103 float squaredLen = other.squaredLength();
104 if( squaredLen == 0 ) return Complex(0,0);
105
106 return Complex((r*other.r + i*other.i)/squaredLen, (i*other.r - r*other.i)/squaredLen);
107}
108
109//-----------------------
110// Swizzle operators

Callers

nothing calls this directly

Calls 1

squaredLengthMethod · 0.80

Tested by

no test coverage detected