Back to class index
Circle[Class Summary]
pos
normal
r
ctor (+1 overload)
BasisU()[const]
BasisV()[const]
GetPoint(angleRadians)[const] (+1 overload)
CenterPoint()[const]
Centroid()[const]
ExtremePoint(direction)[const]
ContainingPlane()[const]
Translate(offset)
Transform(transform) (+3 overloads)
EdgeContains(point,maxDistance)[const]
DistanceToEdge(point)[const]
DistanceToDisc(point)[const]
ClosestPointToEdge(point)[const]
ClosestPointToDisc(point)[const]
Intersects(plane,pt1,pt2)[const] (+1 overload)
IntersectsDisc(line)[const] (+2 overloads)
IntersectsFaces(obb)[const] (+1 overload)
ToString()[const]

Circle::GetPoint

Syntax

float4 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.

Parameters

floatangleRadiansThe 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 Value

A point in world space at the edge of this circle.

Syntax

float4 Circle::GetPoint(float angleRadians, float d) const; [6 lines of code]

Returns a point inside this circle.

Parameters

floatangleRadiansThe 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.