<vizmat>.AngleToPoint

Returns the angle between 2d points

 

<vizmat>.AngleToPoint(
    p1    # [x,z]
    p2    # [x,z]

)

 

p1

The first point


p2

The second point


Remarks

This command will return the angle from the first point to the second point.

Return Value

The angle, in degrees

Example

import vizmat

#This will print out 90
vizmat.AngleToPoint([0,0],[1,0])