VectSharp  2.2.1
A light library for C# vector graphics
VectSharp.ThreeD.ParallelLightSource Class Reference

Represents a parallel light source. More...

Inheritance diagram for VectSharp.ThreeD.ParallelLightSource:

Public Member Functions

 ParallelLightSource (double intensity, NormalizedVector3D direction)
 Creates a new ParallelLightSource instance. More...
 
LightIntensity GetLightAt (Point3D point)
 Computes the light intensity at the specified point, without taking into account any obstructions.
 
double GetObstruction (Point3D point, IEnumerable< Triangle3DElement > shadowingTriangles)
 Determines the amount of obstruction of the light that results at point due to the specified shadowingTriangles .
 

Properties

double Intensity [get, set]
 The intensity of the light. More...
 
NormalizedVector3D Direction [get]
 The direction along which the light travels. More...
 
NormalizedVector3D ReverseDirection [get]
 The reverse of Direction. More...
 
bool CastsShadow = true [get, set]
 
- Properties inherited from VectSharp.ThreeD.ILightSource
bool CastsShadow [get]
 Determines whether the light casts a shadow or not. More...
 

Detailed Description

Represents a parallel light source.

Definition at line 126 of file Lights.cs.

Constructor & Destructor Documentation

◆ ParallelLightSource()

VectSharp.ThreeD.ParallelLightSource.ParallelLightSource ( double  intensity,
NormalizedVector3D  direction 
)

Creates a new ParallelLightSource instance.

Parameters
intensityThe intensity of the light.
directionThe direction along which the light travels.

Definition at line 151 of file Lights.cs.

Property Documentation

◆ Direction

NormalizedVector3D VectSharp.ThreeD.ParallelLightSource.Direction
get

The direction along which the light travels.

Definition at line 136 of file Lights.cs.

◆ Intensity

double VectSharp.ThreeD.ParallelLightSource.Intensity
getset

The intensity of the light.

Definition at line 131 of file Lights.cs.

◆ ReverseDirection

NormalizedVector3D VectSharp.ThreeD.ParallelLightSource.ReverseDirection
get

The reverse of Direction.

Definition at line 141 of file Lights.cs.


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