MCPcopy Create free account
hub / github.com/EricLengyel/Terathon-Math-Library / Circle2D

Class Circle2D

TSConformal2D.h:349–420  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

347 /// \also Dipole3D
348
349 class Circle2D
350 {
351 public:
352
353 float w, x, y, z;
354
355 TERATHON_API static const ConstCircle2D zero;
356
357 /// \brief Default constructor that leaves the components uninitialized.
358
359 inline Circle2D() = default;
360
361 /// \brief Constructor that sets components explicitly.
362 /// \param cw,cx,cy,cz The components of the circle.
363
364 Circle2D(float cw, float cx, float cy, float cz)
365 {
366 w = cw;
367 x = cx;
368 y = cy;
369 z = cz;
370 }
371
372 /// \brief Sets all four components of a 3D circle.
373 /// \param cw,cx,cy,cz The new components of the circle.
374
375 Circle2D& Set(float cw, float cx, float cy, float cz)
376 {
377 w = cw;
378 x = cx;
379 y = cy;
380 z = cz;
381 return (*this);
382 }
383
384 void Set(float cw, float cx, float cy, float cz) volatile
385 {
386 w = cw;
387 x = cx;
388 y = cy;
389 z = cz;
390 }
391
392 Circle2D& operator *=(float n)
393 {
394 w *= n;
395 x *= n;
396 y *= n;
397 z *= n;
398 return (*this);
399 }
400
401 Circle2D& operator /=(float n)
402 {
403 n = 1.0F / n;
404 w *= n;
405 x *= n;
406 y *= n;

Callers 10

ContainerMethod · 0.85
WedgeMethod · 0.85
operator -Function · 0.85
operator *Function · 0.85
operator /Function · 0.85
DualFunction · 0.85
ReverseFunction · 0.85
ContainerFunction · 0.85
PartnerFunction · 0.85
UnitizeFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected