VectSharp 2.6.1
A light library for C# vector graphics
Loading...
Searching...
No Matches
VectSharp.ThreeD.ILightSource Interface Reference

Represents a light source. More...

Inheritance diagram for VectSharp.ThreeD.ILightSource:

Public Member Functions

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

Properties

bool CastsShadow [get]
 Determines whether the light casts a shadow or not. More...
 

Detailed Description

Represents a light source.

Definition at line 65 of file Lights.cs.

Member Function Documentation

◆ GetLightAt()

LightIntensity VectSharp.ThreeD.ILightSource.GetLightAt ( Point3D  point)

Computes the light intensity at the specified point, without taking into account any obstructions.

Parameters
pointThe Point3DElement at which the light intensity should be computed.
Returns

Implemented in VectSharp.ThreeD.AmbientLightSource, VectSharp.ThreeD.ParallelLightSource, VectSharp.ThreeD.PointLightSource, VectSharp.ThreeD.SpotlightLightSource, VectSharp.ThreeD.MaskedLightSource, and VectSharp.ThreeD.AreaLightSource.

◆ GetObstruction()

double VectSharp.ThreeD.ILightSource.GetObstruction ( Point3D  point,
IEnumerable< Triangle3DElement >  shadowingTriangles 
)

Determines the amount of obstruction of the light that results at point due to the specified shadowingTriangles .

Parameters
pointThe Point3D at which the obstruction should be computed.
shadowingTrianglesA collection of Triangle3DElement casting shadows.
Returns
1 if the light is completely obstructed, 0 if the light is completely visible, a value between these if the light is partially obstructed.

Implemented in VectSharp.ThreeD.AmbientLightSource, VectSharp.ThreeD.ParallelLightSource, VectSharp.ThreeD.PointLightSource, VectSharp.ThreeD.SpotlightLightSource, VectSharp.ThreeD.MaskedLightSource, and VectSharp.ThreeD.AreaLightSource.

Property Documentation

◆ CastsShadow

bool VectSharp.ThreeD.ILightSource.CastsShadow
get

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