Box2D  3.0.0
A Real-Time-Oriented 2-D Physics Engine
Public Member Functions | Public Attributes | List of all members
box2d::Vec3 Struct Reference

A 2D column vector with 3 elements. More...

#include <Math.hpp>

Public Member Functions

 Vec3 () noexcept=default
 Default constructor does nothing (for performance). More...
 
constexpr Vec3 (RealNum x_, RealNum y_, RealNum z_) noexcept
 Construct using coordinates. More...
 
constexpr auto operator- () const noexcept
 Negate this vector. More...
 

Public Attributes

RealNum x
 
RealNum y
 
RealNum z
 

Detailed Description

A 2D column vector with 3 elements.

Note
This data structure is 3 times the size of RealNum - i.e. 12-bytes (with 4-byte RealNum).

Constructor & Destructor Documentation

◆ Vec3() [1/2]

box2d::Vec3::Vec3 ( )
defaultnoexcept

Default constructor does nothing (for performance).

◆ Vec3() [2/2]

constexpr box2d::Vec3::Vec3 ( RealNum  x_,
RealNum  y_,
RealNum  z_ 
)
inlinenoexcept

Construct using coordinates.

Member Function Documentation

◆ operator-()

constexpr auto box2d::Vec3::operator- ( ) const
inlinenoexcept

Negate this vector.

Member Data Documentation

◆ x

RealNum box2d::Vec3::x

◆ y

RealNum box2d::Vec3::y

◆ z

RealNum box2d::Vec3::z

The documentation for this struct was generated from the following file: