Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

breaking change : change return type of dxle::cross<dxle::point_c> #90

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

yumetodo
Copy link
Collaborator

@yumetodo yumetodo commented Aug 11, 2016

template<typename T1, typename T2>
ResultType cross(const point_c<T1>& p1, const point_c<T2>& p2);

(T1 : first argumrnt type, T2 : second argumet type)
result type :

  1. when T1 or T2 is not arithemtic type, result type is not-arithmetic one(T1 has high pritority).
  2. when T1 or T2 is floating point type, result type is double.
  3. when T1 or T2 is integral type, result type is integral type. sizeof(result type) is twice as many size as bigger one.
  4. In other case, result type is T1.

ref: #88

(T1 : first argumrnt type, T2 : second argumet type)
result type :
	1. when T1 or T2 is not arithemtic type,  result type is not-arithmetic one(T1 has high pritority).
	2. when T1 or T2 is floating point type, result type is double.
	3. when T1 or T2 is integral type, result type is integral type. sizeof(result type) is twice as many size as bigger one.
	4. In other case, result type is T1.

ref: #88
@yumetodo yumetodo added this to the 座標系クラスの完成 milestone Aug 11, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant