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::Circle

Syntax

Circle::Circle(); [1 line of code]

The default constructor does not initialize any members of this class.

This means that the values of the members pos, normal and r are all undefined after creating a new circle using this default constructor. Remember to assign to them before use.

See Also

pos, normal, r.

Syntax

Circle::Circle(const float4 &center, const float4 &normal, float radius); [6 lines of code]

Constructs a new circle by explicitly specifying the member variables.

Parameters

const float4 &centerThe center point of the circle. const float4 &normalThe direction vector that specifies the orientation of this circle. This vector must be normalized, this constructor will not normalize the vector for you (for performance reasons). floatradiusThe radius of the circle.

See Also

pos, normal, r.