Class MTCoordinates

Inherits from:
MTVector
Declared in:
../libmoltalk/MTCoordinates.oh

Class Hierarchy

    MTVector
      |
      +---MTCoordinates

Last modified:
16-May-2006 (../libmoltalk/MTCoordinates.m)

Method Index

Methods

+(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

+(MTCoordinates*)origin

create new coordinates at the origin (0,0,0)

-(id)add:(MTVector*)v2

* add vector v2 to this one

-(MTMatrix44*)alignToZaxis

return the rotation matrix to align the vector along the Z-axis

-(id)copy

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

-(double)length

length of the vector

-(id)normalize

normalize

-(id)rotateBy:(MTMatrix44*)m

-(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

-(id)translateBy:(MTVector*)v

-(double)x

getters

-(double)y

-(double)z


generated 07-Jun-2006 by ObjcDoc 3.0.0