fr.cnes.sirius.patrius.assembly.properties.features
Class Facet
java.lang.Object
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. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Facet
public Facet(Vector3D inNormal,
double inArea)
- Simple constructor.
- Parameters:
inNormal
- vector normal to the facetinArea
- facet area
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.