Back to Corkboard

CorkTrigonometry.h File Reference

Trigonometric functions used by Corkboard and available to plug-ins. More...


Functions

CGFloat CorkDegreesToRadians (CGFloat degrees)
 Converts an angle, measured in degrees, to radians.
CGFloat CorkRadiansToDegrees (CGFloat radians)
 Converts an angle, measured in radians, to degrees.
CGFloat CorkDegreesToRevolutions (CGFloat degrees)
 Converts an angle, measured in degrees, to revolutions.
CGFloat CorkRevolutionsToDegrees (CGFloat revs)
 Converts an angle, measured in revolutions, to degrees.
CGFloat CorkRadiansToRevolutions (CGFloat radians)
 Converts an angle, measured in radians, to revolutions.
CGFloat CorkRevolutionsToRadians (CGFloat revs)
 Converts an angle, measured in revolutions, to radians.
NSPoint CorkMakePointWithRadians (CGFloat radians, CGFloat radius)
 Converts an angle and distance to a mathematical vector.
NSPoint CorkMakePointWithDegrees (CGFloat degrees, CGFloat radius)
 Converts an angle and distance to a mathematical vector.
NSPoint CorkMakePointWithRevolutions (CGFloat revs, CGFloat radius)
 Converts an angle and distance to a mathematical vector.


Detailed Description

Trigonometric functions used by Corkboard and available to plug-ins.


Function Documentation

CGFloat CorkDegreesToRadians ( CGFloat  degrees  ) 

Converts an angle, measured in degrees, to radians.

  • degrees: The angle to convert, in degrees.
Returns:
The angle in radians, or NAN on error.
Since:
CorkCore 1.0

CGFloat CorkDegreesToRevolutions ( CGFloat  degrees  ) 

Converts an angle, measured in degrees, to revolutions.

  • degrees: The angle to convert, in degrees.
Returns:
The angle in revolutions, or NAN on error.
Since:
CorkCore 1.1

NSPoint CorkMakePointWithDegrees ( CGFloat  degrees,
CGFloat  radius 
)

Converts an angle and distance to a mathematical vector.

  • degrees: The angle, in degrees.
  • radius: The distance from the point (0.0, 0.0). The unit is arbitrary.
Returns:
A point representing the vector described by the angle degrees and the distance radius.
Given an angle and a distance from (0,0), creates a mathematical vector represented as a point. This function is useful for plotting trigonometric calculations.

Since:
CorkCore 1.0

NSPoint CorkMakePointWithRadians ( CGFloat  radians,
CGFloat  radius 
)

Converts an angle and distance to a mathematical vector.

  • radians: The angle, in radians.
  • radius: The distance from the point (0.0, 0.0). The unit is arbitrary.
Returns:
A point representing the vector described by the angle radians and the distance radius.
Given an angle and a distance from (0,0), creates a mathematical vector represented as a point. This function is useful for plotting trigonometric calculations.

Since:
CorkCore 1.0

NSPoint CorkMakePointWithRevolutions ( CGFloat  revs,
CGFloat  radius 
)

Converts an angle and distance to a mathematical vector.

  • revs: The angle, in revolutions.
  • radius: The distance from the point (0.0, 0.0). The unit is arbitrary.
Returns:
A point representing the vector described by the angle revs and the distance radius.
Given an angle and a distance from (0,0), creates a mathematical vector represented as a point. This function is useful for plotting trigonometric calculations.

Since:
CorkCore 1.1

CGFloat CorkRadiansToDegrees ( CGFloat  radians  ) 

Converts an angle, measured in radians, to degrees.

  • radians: The angle to convert, in radians.
Returns:
The angle in degrees, or NAN on error.
Since:
CorkCore 1.0

CGFloat CorkRadiansToRevolutions ( CGFloat  radians  ) 

Converts an angle, measured in radians, to revolutions.

  • radians: The angle to convert, in radians.
Returns:
The angle in revolutions, or NAN on error.
Since:
CorkCore 1.1

CGFloat CorkRevolutionsToDegrees ( CGFloat  revs  ) 

Converts an angle, measured in revolutions, to degrees.

  • revs: The angle to convert, in revolutions.
Returns:
The angle in degrees, or NAN on error.
Since:
CorkCore 1.1

CGFloat CorkRevolutionsToRadians ( CGFloat  revs  ) 

Converts an angle, measured in revolutions, to radians.

  • revs: The angle to convert, in revolutions.
Returns:
The angle in radians, or NAN on error.
Since:
CorkCore 1.1

CorkCore Framework Reference © 2008–2009 Ayluro, Inc. All rights reserved. Questions or comments? Contact us.