MTVector
|
+---MTCoordinates
+(MTCoordinates*)coordsFromCoordinates:(MTCoordinates*)p_coords
make copy of given coordinates
+(MTCoordinates*)coordsFromVector:(MTVector*)p_vect
make copy of given coordinates
+(MTCoordinates*)coordsWithX:(double)p_x Y:(double)p_y Z:(double)p_z
create new coordinates with the given values
create new coordinates at the origin (0,0,0)
* add vector v2 to this one
return the rotation matrix to align the vector along the Z-axis
make copy of given coordinates
-(id)differenceTo: (MTCoordinates *)other
-(double)distanceTo:(MTCoordinates*)c2
calculates distance between the two coordinates
-(double)distanceToLineFrom:(MTCoordinates*)v2 to:(MTCoordinates*)v3
calculate distance of this coordinates to the line given by (v2,v3)
-(double)euklideanDistanceTo:(MTVector*)v2
overwrite so we won't add up all 4 dimensions but only the 3 real ones
length of the vector
normalize
-(double)scalarProductBy: (MTVector*)v2
scalar product between two vectors
-(id)setX:(double)newx Y:(double)newy Z:(double)newz
set coordinates to the new values
-(id)transformBy:(MTMatrix53*)m
transform this coordinates
getters