Sign in to follow this  

this pointer errors...

Recommended Posts

I have this member of a function:
Vector3 Vector3::returnCross(const Vector3 &vec)
	return Vector3(
		y*vec.z - z*vec.y,
		z*vec.x - x*vec.z,
		x*vec.y - y*vec.x
I am trying to use this function like this:
n = direction.returnCross(cylinder._Axis);
However I am using direction like:
const Vector3& direction
I keep getting errors about not being able to convert the this pointer from 'const class Vector3' to 'class Vector3 &'. Any ideas about how to solve this problem? Tera_Dragon

Share this post

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this