Back to class index
| Circle::GetPointSyntaxfloat4 Circle::GetPoint(float angleRadians) const; [6 lines of code]Returns a point at the edge of this circle. Note This function is equivalent to calling GetPoint(float angleRadians, float d) with a value of d == 1. ParametersfloatangleRadiansThe direction of the point to get. A full circle is generated by the range [0, 2*pi], but it is ok to pass in values outside this range. Return ValueA point in world space at the edge of this circle. Syntaxfloat4 Circle::GetPoint(float angleRadians, float d) const; [6 lines of code]Returns a point inside this circle. ParametersfloatangleRadiansThe direction of the point to get. A full circle is generated by the range [0, 2*pi], but it is ok to pass in values outside this range. floatdA value in the range [0,1] that specifies the normalzied distance of the point from the center of the circle. A value of 0 returns the center point of this circle. A value of 1 returns a point at the edge of this circle. The range of d is not restricted, so it is ok to pass in values larger than 1 to generate a point lying completely outside this circle. |