fr.cnes.sirius.patrius.assembly.properties.features
Class Facet

java.lang.Object
  extended by fr.cnes.sirius.patrius.assembly.properties.features.Facet
All Implemented Interfaces:
Serializable, CrossSectionProvider

public final class Facet
extends Object
implements CrossSectionProvider, Serializable

This class is a cross section provider.

Note that the use of this class implies a constant area which may not be suited for some application such as reentry.

Since:
1.1
Version:
$Id: Facet.java 17588 2017-05-10 13:31:54Z bignon $
Author:
Thomas Trapier
See Also:
CrossSectionProvider, Serialized Form
Concurrency :
immutable

Constructor Summary
Facet(Vector3D inNormal, double inArea)
          Simple constructor.
 
Method Summary
 double getArea()
           
 double getCrossSection(Vector3D direction)
          Computes the cross section from the direction defined by a Vector3D.
 Vector3D getNormal()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Facet

public Facet(Vector3D inNormal,
             double inArea)
Simple constructor.

Parameters:
inNormal - vector normal to the facet
inArea - facet area
Method Detail

getNormal

public Vector3D getNormal()
Returns:
unit normal vector

getArea

public double getArea()
Returns:
facet area

getCrossSection

public double getCrossSection(Vector3D direction)
Description copied from interface: CrossSectionProvider
Computes the cross section from the direction defined by a Vector3D.

Specified by:
getCrossSection in interface CrossSectionProvider
Parameters:
direction - the direction vector
Returns:
the cross section


Copyright © 2017 CNES. All Rights Reserved.