Math Utilities - does multipication and division make sense?

In the math utilities there are operators defined for both mulitpicaion and division on CGPoint.

Given these are being used as vector representation does it make sense to multiply the CGPoints and return another CGPoint?

There are two types of multiplication of vectors: dot product and cross product. The dot product will return a scalar while the cross product will return a vector - but in three space not 2D space.

Also, there are no checks for division by 0 in the divide operators and I don’t know what the division of two vectors means.

What is the intent for these definitions?

Thanks!

@abridge683 Do you still have issues with this?

This topic was automatically closed after 166 days. New replies are no longer allowed.