Gin
Loading...
Searching...
No Matches
LineSegment3D Struct Reference

Represents a line segment in 3D space. More...

#include <gin_scene3d.h>

Public Member Functions

 LineSegment3D ()=default
 LineSegment3D (const Vec3f &s, const Vec3f &e, juce::Colour c=juce::Colours::white)
 LineSegment3D (float x1, float y1, float z1, float x2, float y2, float z2, juce::Colour c=juce::Colours::white)

Public Attributes

Vec3f start
Vec3f end
juce::Colour colour { juce::Colours::white }

Detailed Description

Represents a line segment in 3D space.

Constructor & Destructor Documentation

◆ LineSegment3D() [1/3]

LineSegment3D::LineSegment3D ( )
default

◆ LineSegment3D() [2/3]

LineSegment3D::LineSegment3D ( const Vec3f & s,
const Vec3f & e,
juce::Colour c = juce::Colours::white )

References colour, end, and start.

◆ LineSegment3D() [3/3]

LineSegment3D::LineSegment3D ( float x1,
float y1,
float z1,
float x2,
float y2,
float z2,
juce::Colour c = juce::Colours::white )

References colour, end, and start.

Member Data Documentation

◆ start

Vec3f LineSegment3D::start

Referenced by LineSegment3D(), and LineSegment3D().

◆ end

Vec3f LineSegment3D::end

Referenced by LineSegment3D(), and LineSegment3D().

◆ colour

juce::Colour LineSegment3D::colour { juce::Colours::white }

Referenced by LineSegment3D(), and LineSegment3D().


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